Note that there are some explanatory texts on larger screens.

plurals
  1. POSERVICE_NOT_AVAILABLE GCM android
    text
    copied!<p>I've been developing an android application with no problem until now. Everything worked fine last week but today I tryed to register to the GCM server and I'm getting a Service_not_available. I've searched all over the web as to what can be the cause of this because it worked last week, still no solution found. I'm using the example from the GCM Server in the android developers. This is my AndroidManifest.xml</p> <pre><code>&lt;permission android:name="com.testing.permission.C2D_MESSAGE" android:protectionLevel="signature" /&gt; &lt;uses-permission android:name="com.testing.permission.C2D_MESSAGE" /&gt; &lt;uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /&gt; &lt;uses-permission android:name="android.permission.INTERNET" &gt; &lt;/uses-permission&gt; &lt;uses-permission android:name="android.permission.VIBRATE" &gt; &lt;/uses-permission&gt; &lt;uses-permission android:name="android.permission.GET_ACCOUNTS" /&gt; &lt;uses-permission android:name="android.permission.WAKE_LOCK" /&gt; &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt; &lt;application android:allowBackup="true" android:icon="@drawable/icono_aplicacion" android:label="@string/app_name" android:theme="@style/AppTheme" &gt; &lt;activity android:screenOrientation="portrait" android:name="com.testing.MainActivity" android:label="@string/app_name" android:windowSoftInputMode="stateHidden" &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:screenOrientation="portrait" android:name="com.testing.Inicio" android:windowSoftInputMode="stateHidden" &gt; &lt;/activity&gt; &lt;receiver android:name="com.testing.GCMBroadcastReceiver" 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;category android:name="com.testing" /&gt; &lt;/intent-filter&gt; &lt;intent-filter&gt; &lt;action android:name="com.google.android.c2dm.intent.REGISTRATION" /&gt; &lt;category android:name="com.testing" /&gt; &lt;/intent-filter&gt; &lt;/receiver&gt; &lt;service android:name="com.testing.GCMIntentService" /&gt; </code></pre> <p>and the application throws an exception when I call.</p> <pre><code> String regid = gcm.register(SENDER_ID); </code></pre> <p>Any ideas how to fix this? I've already tryed on 4 devices with no luck</p>
 

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