android - Parse deviceToken empty after ParseInstallation save -


i working on app use parse send , receive notifications. problem when register installation devicetoken empty (devicetype , installationid aren't empty). when token empty can't receive notifications.

how register installation:

parse.initialize(this, "x", "x"); parseinstallation.getcurrentinstallation().saveinbackground(); 

when added code parse app (https://www.parse.com/apps/quickstart#parse_push/android/native/existing) working fine.

my androidmanifest.xml:

<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android"     package="com.xxx.xxx" >      <uses-sdk android:maxsdkversion="17" />     <uses-permission android:name="android.permission.internet" />     <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="android.permission.receive_boot_completed" />     <uses-permission android:name="android.permission.get_accounts" />     <uses-permission android:name="com.google.android.c2dm.permission.receive" />      <permission android:protectionlevel="signature"         android:name="com.xxx.xxx.permission.c2d_message" />     <uses-permission android:name="com.xxx.xxx.permission.c2d_message" />      <application         android:name="com.xxx.xxx.name_"         android:allowbackup="true"         android:icon="@drawable/ic_launcher"         android:logo="@drawable/ic_launcher"         android:label="@string/app_name"         android:theme="@style/apptheme" >          <meta-data             android:name="com.google.android.gms.analytics.globalconfigresource"             android:resource="@xml/global_tracker" />          <activity             android:name="com.xxx.xxx.activities.splashactivity_"             android:screenorientation="portrait"             android:label="@string/app_name" >             <intent-filter>                 <action android:name="android.intent.action.main" />                 <category android:name="android.intent.category.launcher" />             </intent-filter>         </activity>         <activity             android:name="com.xxx.xxx.activities.loginactivity_"             android:screenorientation="portrait"             android:label="@string/app_name" >         </activity>         <activity             android:name="com.xxx.xxx.activities.forgotpassword_"             android:screenorientation="portrait"             android:label="@string/app_name">         </activity>         <activity             android:name="com.xxx.xxx.activities.mainactivity_"             android:screenorientation="portrait"             android:label="@string/app_name" >         </activity>         <activity             android:name="com.xxx.xxx.activities.editprofile_"             android:screenorientation="portrait"             android:label="@string/edit_profile" >         </activity>          <receiver android:name="com.google.android.gms.analytics.analyticsreceiver"             android:enabled="true">             <intent-filter>                 <action android:name="com.google.android.gms.analytics.analytics_dispatch" />             </intent-filter>         </receiver>         <service android:name="com.google.android.gms.analytics.analyticsservice"             android:enabled="true"             android:exported="false"/>          <service android:name="com.parse.pushservice" />         <receiver android:name="com.parse.parsebroadcastreceiver">             <intent-filter>                 <action android:name="android.intent.action.boot_completed" />                 <action android:name="android.intent.action.user_present" />             </intent-filter>         </receiver>         <receiver android:name=".receiver.mypushbroadcastreceiver"             android:exported="false">             <intent-filter>                 <action android:name="com.parse.push.intent.receive" />                 <action android:name="com.parse.push.intent.delete" />                 <action android:name="com.parse.push.intent.open" />             </intent-filter>         </receiver>         <receiver android:name="com.parse.gcmbroadcastreceiver"             android:permission="com.google.android.c2dm.permission.send">             <intent-filter>                 <action android:name="com.google.android.c2dm.intent.receive" />                 <action android:name="com.google.android.c2dm.intent.registration" />                  <category android:name="com.xxx.xxx" />             </intent-filter>         </receiver>     </application>  </manifest> 

i created new application, added parse , deleted installation class/table in parse still no devicetoken.

i think it's bug in new parse sdk. downgraded 1.9.0 , works fine now.

source: https://groups.google.com/forum/#!topic/parse-developers/a1z0ssc304m


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -