Phonegap Push Plugin 1.6.0+ build problem

  • 1
  • Problem
  • Updated 4 years ago
I am adding phonegap push plugin with:

< plugin name="phonegap-plugin-push" source="npm" spec="~1.6.3">
< variable name="SENDER_ID" value="*********" />
</ plugin>

I am using build.phonegap.com for building it. None of 1.6.0 and above is working. If i build with 1.6.0+ the package is 3mb. When i use 1.5.3 the package is 4mb. Which means it is not adding the plugin...

Any ideas?
Photo of skyprime

skyprime

  • 2 Posts
  • 0 Reply Likes

Posted 4 years ago

  • 1
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
If i build with 1.6.0+ the package is 3mb. When i use 1.5.3 the package is 4mb. Which means it is not adding the plugin...
Not necessarily. Perhaps the newer version is just a lot smaller in size than the old one.

None of 1.6.0 and above is working.
What does 'not working' mean?
- it doesn't build
- it doesn't install
- it doesn't launch
- it throws error messages
- it returns unexpected results
- it makes your device explode

WHAT?
Photo of skyprime

skyprime

  • 2 Posts
  • 0 Reply Likes
- It builds
- it installs
- it launches
- no error

It is not registring the id and not getting the token from GCM. When i open packages with notepad i can find the word "push" with 4 mb package but not with 3mb package. I am using default template which only registers the id. I can do it with 1.5.3 but cannot do it with 1.6.0 and above..

Only using build.phonegap.com
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
I am using default template which....
Do you mean the default HelloWorld package?
If so did you use the default package, without changing the directory structure?

Further questions:
- are you using the gradle build tool?
- do you see the plugin and the version number in the plugins tab of your app's PGB page?
- can you find your issue in this list?
https://github.com/phonegap/phonegap-...