Step to Reproduce:

  • Create a new Phonegap Application (in this example on the PC):

  • Identifier and Name de.myapp.myapp MYAPP

console-begin

cd c:\

call cordova create PhoneGap_android de.myapp.myapp MYAPP

cd PhoneGap_android

call cordova platform add android

call cordova plugin add https://github.com/Pushwoosh/pushwoosh-phonegap-3.0-plugin.git

call cordova plugin add cordova-plugin-whitelist@1.0

call cordova plugin add cordova-plugin-network-information

call cordova plugin add cordova-plugin-device

call cordova plugin add cordova-plugin-splashscreen

call cordova plugin add cordova-plugin-console

console-end

  • Open the project in the Android Studio

  • Now add the needed dependency in the build.gradle file compile "com.google.android.gms:play-services-gcm:+"

dependencies {

compile fileTree(dir: 'libs', include: '*.jar')
// SUB-PROJECT DEPENDENCIES START
debugCompile project(path: "CordovaLib", configuration: "debug")
releaseCompile project(path: "CordovaLib", configuration: "release")
compile "com.google.android.gms:play-services-gcm:+"
// SUB-PROJECT DEPENDENCIES END

}

  • Try to install and run the MYAPP on a real Android device

  • Also is fine! The App can be installed and lanched too.

  • Close the App and close the Android Studio too

  • Create a second new Phonegap App

  • Identifier and Name are completely different to the first APP de.myapp2.myapp2 MYAPP2

console-begin

cd c:\

rd .\PhoneGap_android2 /S /Q

call cordova create PhoneGap_android2 de.myapp2.myapp2 MYAPP2

cd PhoneGap_android2

call cordova platform add android

call cordova plugin add https://github.com/Pushwoosh/pushwoosh-phonegap-3.0-plugin.git

call cordova plugin add cordova-plugin-whitelist@1.0

call cordova plugin add cordova-plugin-network-information

call cordova plugin add cordova-plugin-device

call cordova plugin add cordova-plugin-splashscreen

call cordova plugin add cordova-plugin-console

console-end

  • Open the second project in the Android Studio

  • Now add also the dependency in build.gradle file compile "com.google.android.gms:play-services-gcm:+"

dependencies {

compile fileTree(dir: 'libs', include: '*.jar')
// SUB-PROJECT DEPENDENCIES START
debugCompile project(path: "CordovaLib", configuration: "debug")
releaseCompile project(path: "CordovaLib", configuration: "release")
compile "com.google.android.gms:play-services-gcm:+"
// SUB-PROJECT DEPENDENCIES END

}

  • Try to install and run the MYAPP2 on the same real Android device (MYAPP is still installed)

  • Follow error message appear

image

Then trying uninstalling proposes course fail. Because App does not exist.

  • You can never install more then one PhoneGap App with the PushWoosh-Plugin and the required dependency (compile "com.google.android.gms:play-services-gcm:+") on the same device

  • This also happens with released Apps (sent via email as an APK MYAPP and MyApp2)

  • And it happens even if the apps are installed from the !!Play Store!! Mostly then comes the error -505

  • Without dependencies it would work. But then I can not use PUSHWOOSH. Because PUSHWOOSH the dependencies needs.

The question is also a issue in the Pushwoosh Git repository:

https://github.com/Pushwoosh/pushwoosh-phonegap-plugin/issues/149

Enviorenment

  • Samsung Note 3 (SM-9005) with Android 5.0
  • Android Studio 1.5.1
  • PhoneGap 5.4.1 (but also happend with 5.3.3)
  • "cordova-plugin-whitelist": "1.2.0",
  • "com.pushwoosh.plugins.pushwoosh": "3.6.16",
  • "cordova-plugin-network-information": "1.1.0",
  • "cordova-plugin-device": "1.1.0",
  • "cordova-plugin-splashscreen": "3.0.0",
  • "cordova-plugin-console": "1.0.2",
asked 12 Jan '16, 18:06
RonnySchleicher's gravatar image

RonnySchleicher
112

edited 13 Jan '16, 15:27

Hello Ronny,

Thank you for reporting the issue! Though this is extremely weird, we were actually able to reproduce this. I will let you know as soon as our SDK engineers fix it.

permanent link
answered 13 Jan '16, 14:27
Benedict's gravatar image

Benedict
7127

edited 13 Jan '16, 14:27

Text change (Typing Error, Sorry)

change 'a' to 'the'!

old

  • Try to install and run the MYAPP2 on a same real Android device (MYAPP is still installed)

new

  • Try to install and run the MYAPP2 on the same real Android device (MYAPP is still installed)
permanent link
answered 13 Jan '16, 15:10
RonnySchleicher's gravatar image

RonnySchleicher
112

edited 13 Jan '16, 15:10

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×447
×326
×165
×30

question asked: 12 Jan '16, 18:06

question was seen: 955 times

last updated: 14 Jan '16, 19:02