Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Android: JSON Exception No Value Found for Sender #781

Closed
Koire opened this issue Apr 6, 2016 · 2 comments
Closed

Android: JSON Exception No Value Found for Sender #781

Koire opened this issue Apr 6, 2016 · 2 comments

Comments

@Koire
Copy link

Koire commented Apr 6, 2016

Expected Behaviour

I expect to register with GCM

Actual Behaviour

An error is thrown saying I don't have a value for sender

Reproduce Scenario (including but not limited to)

Try to register with push.init({
"android" : {
"sender": "mysenderid"
}
});

Steps to Reproduce

Platform and Version (eg. Android 5.0 or iOS 9.2.1)

Android 5.0

(Android) What device vendor (e.g. Samsung, HTC, Sony...)

LG ISAI

Cordova CLI version and cordova platform version

cordova --version                                    6.1.1
cordova platform version android            5.1.1

Plugin version

cordova plugin version | grep phonegap-plugin-push  1.6.1

Sample Push Data Payload

Sample Code that illustrates the problem

Logs taken while reproducing problem

04-06 15:58:46.653 14162-14201/? V/PushPlugin: execute: action=init
04-06 15:58:46.653 14162-14332/? V/PushPlugin: execute: data=[{"android":{"sender":"MYSENDERID"}}]
04-06 15:58:46.653 14162-14332/? V/PushPlugin: execute: jo={"sender":"MYSENDERID"}
04-06 15:58:46.653 14162-14332/? E/PushPlugin: execute: Got JSON Exception No value for senderID

@Koire Koire closed this as completed Apr 6, 2016
@Koire
Copy link
Author

Koire commented Apr 6, 2016

Sorry, copied 'sender' instead of 'senderId'

@lock
Copy link

lock bot commented Jun 4, 2018

This thread has been automatically locked.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant