actionscript 3 - GCM Push Notification adobe air -


i m developing push notification service app in android came tutorials achieve goal. struck 2 things can't figure out. need help.

  • pushnotifications.init( "*dev_ke*y" );
  • <permission android:name="*application id*.permission.c2d_message"

now want know 2 things. dev_key , application id.secondly pushnotifications.init(); necessary call? if call without dev_key param?

i'm guessing you're following tutorials on distriqt's site using distriqt cross platform push notifications extension?

if dev_key developer key when sign distriqt extension package. necessary call function valid key if hoping use distriqt extensions. if call without dev_key param extension not work documented.

the second line have there containing application id used in application descriptor file. need add following manifest additions on android replacing your_application_id references applications id. of form : com.company.name. air prefixes shown these applications full id on android platform.

<android>     <manifestadditions><![cdata[         <manifest android:installlocation="auto">              <uses-sdk android:minsdkversion="8" android:targetsdkversion="16"/>              <uses-permission android:name="android.permission.internet"/>             <uses-permission android:name="android.permission.get_accounts" />             <uses-permission android:name="android.permission.vibrate"/>             <uses-permission android:name="android.permission.wake_lock" />             <uses-permission android:name="com.google.android.c2dm.permission.receive" />              <!-- application can receive messages , registration result -->              <permission android:name="air.your_application_id.permission.c2d_message" android:protectionlevel="signature" />             <uses-permission android:name="air.your_application_id.permission.c2d_message" />              <application>                 <receiver android:enabled="true" android:exported="true" android:name="com.distriqt.extension.pushnotifications.pushnotificationsbroadcastreceiver" 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="air.your_application_id" />                     </intent-filter>                 </receiver>                 <service android:enabled="true" android:exported="true" android:name="com.distriqt.extension.pushnotifications.gcm.gcmintentservice" />             </application>          </manifest>      ]]></manifestadditions> </android> 

Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -