Note that there are some explanatory texts on larger screens.

plurals
  1. POCordova PushPlugin not working on Galaxy S2, does work on S3 (same API level)
    primarykey
    data
    text
    <p>We've build a PhoneGap / Cordova app and use the PushPlugin for handling push notifications.</p> <p>On the Galaxy S3 (Android 4.1.2) everything works fine, we do receive push notifications. However, on the Galaxy S2 (also Android 4.1.2) we don't receive push notifications (although we DO receive the devicetoken).</p> <p>As both deviced are running the same Android version, they have the same API level. Also because it works on newer (S3) devices, I assume the code is OK.</p> <p>Here's our AndroidManifest.xml:</p> <pre><code>&lt;?xml version='1.0' encoding='utf-8'?&gt; &lt;manifest android:hardwareAccelerated="true" android:versionCode="8" android:versionName="1.0.0" android:windowSoftInputMode="adjustPan" package="com.APPHQ.APPNAME" xmlns:android="http://schemas.android.com/apk/res/android"&gt; &lt;supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" /&gt; &lt;uses-sdk android:minSdkVersion="11" android:targetSdkVersion="18" /&gt; &lt;uses-permission android:name="android.permission.INTERNET" /&gt; &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt; &lt;uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /&gt; &lt;uses-permission android:name="android.permission.VIBRATE" /&gt; &lt;uses-permission android:name="android.permission.WAKE_LOCK" /&gt; &lt;uses-permission android:name="android.permission.GET_ACCOUNTS" /&gt; &lt;uses-permission android:name="android.permission.GET_TASKS" /&gt; &lt;uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /&gt; &lt;permission android:name="com.APPHQ.APPNAME.permission.C2D_MESSAGE" android:protectionLevel="signature" /&gt; &lt;uses-permission android:name="com.APPHQ.APPNAME.permission.C2D_MESSAGE" /&gt; &lt;application android:allowBackup="true" android:hardwareAccelerated="true" android:icon="@drawable/icon" android:label="@string/app_name"&gt; &lt;activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="@string/app_name" android:name="APPNAME" android:theme="@android:style/Theme.Black.NoTitleBar"&gt; &lt;intent-filter&gt; &lt;action android:name="android.intent.action.MAIN" /&gt; &lt;category android:name="android.intent.category.LAUNCHER" /&gt; &lt;/intent-filter&gt; &lt;/activity&gt; &lt;activity android:name="com.plugin.gcm.PushHandlerActivity" /&gt; &lt;receiver android:name="com.plugin.gcm.CordovaGCMBroadcastReceiver" android:permission="com.google.android.c2dm.permission.SEND"&gt; &lt;intent-filter&gt; &lt;action android:name="com.google.android.c2dm.intent.RECEIVE" /&gt; &lt;action android:name="com.google.android.c2dm.intent.REGISTRATION" /&gt; &lt;category android:name="com.APPHQ.APPNAME" /&gt; &lt;/intent-filter&gt; &lt;/receiver&gt; &lt;service android:name="com.plugin.gcm.GCMIntentService" /&gt; &lt;/application&gt; &lt;/manifest&gt; </code></pre> <p>Any idea what we need to do to get push notifications working on the S2? </p> <p>Many thanks!</p> <p>Robin</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload