my initPushWoosh function is taken from manual for cordova I use my projectid & pw_appid or from your sample project

function is called from here:

 .run(function ($ionicPlatform) {
$ionicPlatform.ready(function () {
  // Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
  // for form inputs)
  if (window.cordova && window.cordova.plugins && window.cordova.plugins.Keyboard) {
    cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
    cordova.plugins.Keyboard.disableScroll(true);

  }
  if (window.StatusBar) {
    // org.apache.cordova.statusbar required
    StatusBar.styleDefault();
  }




  initPushwoosh();


});

})

I made everything according to your manuals and all I get: ["failed to register ","Invalid action"]

Whatever I put as projectid & pw_appid - I always get that message I launch app with phonegap local build (not cloud)

Android manifest.xml:

<?xml version='1.0' encoding='utf-8'?>

<manifest android:hardwareaccelerated="true" android:versioncode="1" android:versionname="0.0.1" package="com.ionicframework.traceurpetapp800250" xmlns:android="http://schemas.android.com/apk/res/android"> <supports-screens android:anydensity="true" android:largescreens="true" android:normalscreens="true" android:resizeable="true" android:smallscreens="true" android:xlargescreens="true"/> <uses-permission android:name="android.permission.INTERNET"/> <application android:hardwareaccelerated="true" android:icon="@drawable/ionic" android:label="@string/app_name" android:supportsrtl="true"> <activity android:configchanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="@string/activity_name" android:launchmode="singleTop" android:name="MainActivity" android:theme="@android:style/Theme.DeviceDefault.NoActionBar" android:windowsoftinputmode="adjustResize"> <intent-filter android:label="@string/launcher_name"> <action android:name="android.intent.action.MAIN"/> <category android:name="android.intent.category.LAUNCHER"/> </intent-filter> </activity> <service android:name="com.pushwoosh.inapp.InAppRetrieverService"/> <activity android:name="com.pushwoosh.inapp.WebActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar"/> <activity android:exported="true" android:name="com.adobe.phonegap.push.PushHandlerActivity"/> <receiver android:name="com.adobe.phonegap.push.BackgroundActionButtonHandler"/> <service android:exported="false" android:name="com.adobe.phonegap.push.GCMIntentService"> <intent-filter> <action android:name="com.google.android.c2dm.intent.RECEIVE"/> </intent-filter> </service> <service android:exported="false" android:name="com.adobe.phonegap.push.PushInstanceIDListenerService"> <intent-filter> <action android:name="com.google.android.gms.iid.InstanceID"/> </intent-filter> </service> <service android:exported="false" android:name="com.adobe.phonegap.push.RegistrationIntentService"/> <receiver android:exported="true" android:name="com.google.android.gms.gcm.GcmReceiver" android:permission="com.google.android.c2dm.permission.SEND"> <intent-filter> <action android:name="com.google.android.c2dm.intent.RECEIVE"/> <category android:name="com.ionicframework.traceurpetapp800250"/> </intent-filter> </receiver> <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version"/> <activity android:name="com.pushwoosh.MessageActivity"/> <activity android:name="com.pushwoosh.PushHandlerActivity"/> <service android:exported="false" android:name="com.pushwoosh.GCMListenerService"> <intent-filter> <action android:name="com.google.android.c2dm.intent.RECEIVE"/> </intent-filter> </service> <service android:exported="false" android:name="com.pushwoosh.GCMInstanceIDListenerService"> <intent-filter> <action android:name="com.google.android.gms.iid.InstanceID"/> </intent-filter> </service> <service android:exported="false" android:name="com.pushwoosh.GCMRegistrationService"/> <receiver android:enabled="true" android:name="com.pushwoosh.local.BootReceiver" android:permission="android.permission.RECEIVE_BOOT_COMPLETED"> <intent-filter> <action android:name="android.intent.action.BOOT_COMPLETED"/> <category android:name="android.intent.category.DEFAULT"/> </intent-filter> </receiver> <receiver android:name="com.pushwoosh.local.AlarmReceiver"/> <activity android:name="com.pushwoosh.richpages.RichPageActivity"/> <service android:name="com.pushwoosh.location.GeoLocationService"/> </application> <uses-sdk android:minsdkversion="16" android:targetsdkversion="23"/> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> <uses-permission android:name="android.permission.WAKE_LOCK"/> <uses-permission android:name="android.permission.VIBRATE"/> <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE"/> <permission android:name="com.ionicframework.traceurpetapp800250.permission.C2D_MESSAGE" android:protectionlevel="signature"/> <uses-permission android:name="com.ionicframework.traceurpetapp800250.permission.C2D_MESSAGE"/> <uses-permission android:name="android.permission.GET_ACCOUNTS"/> <uses-permission android:name="android.permission.READ_PHONE_STATE"/> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> <uses-permission android:name="com.sec.android.provider.badge.permission.READ"/> <uses-permission android:name="com.sec.android.provider.badge.permission.WRITE"/> <uses-permission android:name="com.htc.launcher.permission.READ_SETTINGS"/> <uses-permission android:name="com.htc.launcher.permission.UPDATE_SHORTCUT"/> <uses-permission android:name="com.sonyericsson.home.permission.BROADCAST_BADGE"/> <uses-permission android:name="com.anddoes.launcher.permission.UPDATE_COUNT"/> <uses-permission android:name="com.majeur.launcher.permission.UPDATE_BADGE"/> </manifest>

Any ideas?

asked 06 Apr '16, 18:45
jeffest's gravatar image

jeffest
213

I'm having the exact same problem, also using Ionic

permanent link
answered 08 Apr '16, 08:13
Clay%20Davis's gravatar image

Clay Davis
11

I had phonegap-plugin-push installed which I didn't use After removing this plugin my error disappeared. Hope it helps!

(08 Apr '16, 11:43) jeffest jeffest's gravatar image

Great support, PushWoosh!

permanent link
answered 08 Apr '16, 11:44
jeffest's gravatar image

jeffest
213

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:

×190
×165
×39

question asked: 06 Apr '16, 18:45

question was seen: 1,343 times

last updated: 08 Apr '16, 11:44