Error in push notification


#1

Hi all,
When i using this in config.xml the push notification receiving in ios but not working in android

< plugin name=“phonegap-plugin-push” spec="~1.9.0">
< variable name=“SENDER_ID” value=“XXXXXX”/>
< /plugin>

using the below the push notification receiving in android but not working in ios
< plugin name=“phonegap-plugin-push” spec="~1.6">
< variable name=“SENDER_ID” value=“XXXXXX”/>
< /plugin>

Give me the solution for supporting in both platforms


#2

When using a newer version then 1.8.4 the ionic package service doesnt include the phonegap-plugin-push in the apk file when building for the android platform. Try version 1.8.4 for Android. Or arent you using the package service?

For ios you can use the newsest version (1.10.4) . So far I could not find a way without changing the config.xml between the two platform builds.


#3

< plugin name=“phonegap-plugin-push” spec="~1.8.4">
< variable name=“SENDER_ID” value=“XXXXXX”/>
< /plugin>

This is right?


#4

you dont need the ~ cause you explictly want to use that version

I opened a thread with that subject this week:

you can find my config entry there


#5

thank u very much echle…


#6

Hi echle,
The device not receiving push notifications while i using this
< plugin name=“phonegap-plugin-push” spec=“1.8.4”>
< variable name=“SENDER_ID” value=“xxxxxxxx”/>
< /plugin>


#7

Could you check if the phonegap-plugin-push is included in the apk file?

Just unzip it and look for the folder “phonegape-plugin-push” in assets/www/plugins


#8

yes it is there in that folder


#9

You are using the ionic cloud push service?

Where and when do you register your device?

Have you double checked your sender ID?


#10

during login i register my device


#11

Is the app open or in background while you are sending the push notification?

(sry for asking so much … )

can you see the push token in your ionic-dashboard connected to your user (you should see it when looking at the details of you user in the auth tab)?


#12

< plugin name=“phonegap-plugin-push” spec=“1.8.4”>
< variable name=“SENDER_ID” value=“xxxxxxxx”/>
< /plugin>

While using this android works fine but not in ios


#13

yes, thats what I said.

I use 1.10.4 for ios and 1.8.4 for android


#14

how can i use both in config.xml?


#15

I could not find a solution for that so far, I just change the config.xml before I build …

But I would expect the bug getting fixed in the next time … I would prefer to use 1.10.4. on both platforms of course …