it looks like marshmallow made the push plugin not work on android devices. I am getting this from other plugins like social sharing.
I heard that marshmallow brings a new permission thing that is needed in the android manifest.
should I add anything in the config.xml that will be added to the android manifest? should phonegap build to this for me automatically? anyone having this issues with android 6?
your comments and help would be great.
BTW I build with PGB pointing to NPM... and cli 5.2.0
thanks.
- 186 Posts
- 5 Reply Likes
- confused
Posted 5 years ago
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
did you resolve your issue?
If not,
What you are trying to do. Be specific, not general.
What have you tried.
What did not work as expected.
What level of experience you have with mobile development.
Jesse
- 186 Posts
- 5 Reply Likes
I have almost zero experience with platform specific development. I only use PGB for building hybrid apps.
come marshmallow, notifications that are send from my server simply stopped arriving to the phone. it still works on android 4/5 and on ios 7/8/9 there are only issues with marshmallow so I figured its the problem...
I have not tried anything yet except testing my app on other platforms, I always assume I did not invent the wheel and that someone probably encountered this already. the plugin I use is the 'formal' npm cordova push plugin.
can I give you more info?
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
thanks for the more complete information. Let me look into it.
Hmm... A quick search indicates Marshmallow is not supported yet.
Let's check.
http://community.phonegap.com/nitobi/topics/is-android-6-0-marshmallow-level-23-supported-yet
Jesse
(Volunteer, not a Phonegap Employee)
- 186 Posts
- 5 Reply Likes
I must say other plugins (mostly core ones such as device,whitelist,dialogs,splashscreen seem to work... I am having problems specifically with the push notification plugin...
thanks
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
everyone has problems with push plugin, Simon MacDonald just did another release a few days ago. Did you read it in the blog?
Jesse
- 186 Posts
- 5 Reply Likes
hopefully the 'formal' plugin will be fixed
per my understanding https://www.npmjs.com/package/cordova... is the 'formal' plugin so its what I use
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
please post your
config.xml.
FWIW: the link is a set of example that you should be using. The most important part being source=npm.
Core Plugins Setup
- 186 Posts
- 5 Reply Likes
Will post the config file soom
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
Android Builds Now Using Gradle By Default
http://phonegap.com/blog/2015/09/28/a...
- 186 Posts
- 5 Reply Likes
The build is not the problem, gradle build is fine
The problem is only that the notifications do not work on Android 6...
- 1840 Posts
- 78 Reply Likes
-yiming
- 186 Posts
- 5 Reply Likes
is there a timeline for 5.4.0 cli? I wonder if it will fix this
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
the best thing to do is watch the blog. Cordova released the new Marshmallow version. It should be a few weeks or so.
Best of Luck
Jesse
- 186 Posts
- 5 Reply Likes
diving into this stuff is too progressive for me... reading the blog I noticed that the marshmallow support comes with using cordova-android@5.0.0. however, using PGB with cli 5.2.0 (which is the latest on PGB) uses cordova-android@4.1.1
per what I understand I will have to wait until the PGB guys update cli support to cordova-android@5.0.0 which will probably be in a later CLI version.
am I correct? is there a way yo get cordova-android@5.0.0 working in PGB now?
thanks!
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
(1) per what I understand I will have to wait until the PGB guys update cli support to cordova-android@5.0.0 which will probably be in a later CLI version.
am I correct? (2) is there a way yo get cordova-android@5.0.0 working in PGB now?
On 1), yes you must wait. Should be a week, two, or three. sometimes more.
On 2) No, a common work around is to build with CLI (Command Line Interface). Many people go this route, so they can test the software. Many people cannot compile Android, iOS, Blackberry, Windows, etc. all the time. Too many resources. This is the reason for the latest change to config.xml.
The best thing to do is work around this issue and wait. There is always more work than time.
Best of Luck
Jesse
- 186 Posts
- 5 Reply Likes
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
I expected a release before christmas, but it appears there are issues . You can read about it here: http://community.phonegap.com/nitobi/topics/where-is-the-support-crew
Best of Luck
Jesse
(Volunteer, not a Phonegap employee)
- 186 Posts
- 5 Reply Likes
does using crosswalk webview plugin might bypass this issue? or has nothing to do with it...
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
- 186 Posts
- 5 Reply Likes
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
cli-5.4.1 testing under way. Set your "core" plugin versions.
Unfortunately, even with this release Marshmallow is NOT supported. This version is Cordova Android 4.1.1. To support Android Marshallow, you need to use Cordova Android 5.0.0.
I can only suggest you try building locally with Cordova or Phonegap CLI, if you want Marshmallow support.
However, on your plugin issue, just choose an earlier version of the plugin. It may solve your issue. (See link cli-5.4.1 testing under way (...))
Jesse
- 186 Posts
- 5 Reply Likes
Related Categories
-
PhoneGap Framework
- 2926 Conversations
- 61 Followers
-
PhoneGap Build
- 15111 Conversations
- 275 Followers
-
Plugins
- 1283 Conversations
- 38 Followers



