Start a new topic

Android did not receive push notification from Kinvey Console

Hi

I am using Delphi XE10 with Kinvey Parser to connect to Kinvey.

I have created an account with Google to use Google Cloud Messaging.

Obtained the Google App ID for Google Cloud Messaging.

I also created a test app in Kinvey.

Obtained the AppKey, AppSecret and MasterKey

Created a user in the Kinvey App.


When i run the app, it shows Device Registered and Device Token Received.

When i tried to send a test message from Kinvey Console, 

it states in the status column : 202 Accepted.


But i did not see any messages in my app.


If i install the same app into my iOS, the iOS will receive the message.


Please advise


thanks

chris


Chris,


Kinvey does not support Google Firebase (FCM) today, Kinvey supports Google Cloud Messaging (GCM) which is described in the SDK documentation for push.


Have you had a chance to review my questions in my earlier comment? Also, please send complete information present in "_messaging" column as it is not visible in the screenshot.


Thanks,

Pranav

Hi pranav Let me try the software integrating with my android phone again n I will send u the message again. Met too many problems so putting this on hold for a while
Hi Pranav
I tried today and this is the value of the _message

{
  "pushTokens": [
    {
      "token": "APA91bFiWEhwna3WSA8HuADd6j-Z1kblCGu51SldJD-IUb_ILq6qQRcSSdDt51aNVL5U7sDe5HVS08OfmqKpLkv4zZhVYSCIySzxpPaXQRjceGcBwSnd0EmAx39iT-vZLTzRy1uhTShroCE5JTeNlkc728YoBDCYcA",
      "platform": "android",
      "arn": null
    },
    {
      "token": "APA91bFx9ta_BzpmXL9_PayohLaQ8mrNu8AEXpOZ3uwUbpWvmrq2bKKJR8i9PulbUInV6LEVHrdkPAAKKOqjmioZ-FdRlqvmWjp0b7mOiLDRLry958emiJhdLsjkZ63hx5W0zeqQ-AbzqoOWQUnb7aid8UWT4riG1g",
      "platform": "android",
      "arn": null
    }
  ]
}

please advise

regards
chris

 

 Chris,


  1. You have two apps on Kinvey, "TestNotificationWithKinvey" and "TestAndroidKinvey". For which app you are facing this issue?
  2. Which Kinvey SDK are you using?
  3. For which user you are facing this issue? Can you please tell us how the "_messaging" field in Users collection is populated?
  4. Have you reviewed Kinvey's Android push guide on this link?
  5. Can you please try different Android device to test push notifications if possible?


Thanks,

Pranav

Hi Pranav

I am trying to use the TestAndroidKinvey app to send a push message to my Asus Zenphone.

It registered the user and there is a message as shown in the attachment

but the device did not show any messages received


please advise


thanks

chris


Chris,


I reviewed logs and I can see that the user with username "testkids" has successfully registered the device for Push on Android platform. Everything looks fine from Kinvey's side. Push was sent successfully from Kinvey console on February 7th 2018, 14:11:57.737 with request body as following:


{"message":"Testing message 1","query":{}}


and response body was "{"targets":1}". Username was 'fc785258ddbf4a09a5ffb1c02f3118cc'.


  1. Did you try sending push notification after registering 2nd device?
  2. Didn't you get notification on any device?
  3. Can you please confirm that you have reviewed and using this link for registering your devices for push?
  4. For your other app (TestNotificationWithKinvey), you have configured push for both Android and iOS. You are receiving push notifications on iOS for this app. Right? You are facing issue only for Android push on both of your apps?


I will also ask our Android expert to take a look at this one if above comment doesn't help.


Thanks,

Pranav



Hi Pranav


1. I have only 1 android device which is used for this testing. Hence i could not register a second android device for testing. For that testing, i only sent out 1 push notification from the Kinvey Console.


2. I only have 1 android device. Hence cannot get any notification for another device


3. As i uses Delphi component to communicate with Kinvey. What i received from the component is that the device is registered with kinvey already.


4. As delphi can compile for both android and iOS at the same time with the same code base, the created another app on Kinvey called TestNotificationWithKinvey. For this app, i use my iPhone to register and it was able to get the push notification from Kinvey. However, the same android device was NOT able to get the push notification.


Is there a log to show that it has sent to GCM? 

Also in GCM, how can i see if there is a message sent from Kinvey?


please advise


chris



Hi Pranav

Does Kinvey use the GCM or Firebase for messaging?

How can i debug whether kinvey has sent out the message to GCM or Firebase?


please advise


thanks

chris


Login or Signup to post a comment