Error in push notification

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

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.

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

This is right?

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

thank u very much echle…

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>

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

yes it is there in that folder

You are using the ionic cloud push service?

Where and when do you register your device?

Have you double checked your sender ID?

during login i register my device

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)?

< 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

yes, thats what I said.

I use 1.10.4 for ios and 1.8.4 for android

how can i use both in config.xml?

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 …