Hi,
I've tried this app and run it without any error.
But still cannot register the user.
I'm using App42_Actionscript_SDK.swc and App42_Actionscript_SDK_2.6.swc.
The screenshots :
Code in App42FlashPush-app.xml :
<android>
<colorDepth>16bit</colorDepth>
<manifestAdditions><![CDATA[
<manifest android:installLocation="auto">
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<permission
android:name="air.com.shephertz.app42.push.permission.C2D_MESSAGE"
android:protectionLevel="signature" />
<uses-permission android:name="air.com.shephertz.app42.push.permission.C2D_MESSAGE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<!-- GCM requires a Google account. -->
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.HARDWARE_TEST" />
<uses-permission android:name="android.permission.VIBRATE" />
<application>
<receiver
android:name="com.shephertz.app42.android.flash.push.App42GCMReceiver"
android:permission="com.google.android.c2dm.permission.SEND" >
<intent-filter>
<!-- Receives the actual messages. -->
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<!-- Receives the registration id. -->
<action android:name="com.google.android.c2dm.intent.REGISTRATION" />
<category android:name="air.com.shephertz.app42.push" />
</intent-filter>
</receiver>
<service android:name="com.shephertz.app42.android.flash.push.App42GCMService" >
</service>
<meta-data android:name="push_title" android:value="App42FlashPush"/>
</application>
</manifest>
]]></manifestAdditions>
</android>
Code in AppConstants.as :
package com.shephertz.app42.callback
{
public class AppConstants
{
public static const ApiKey:String = "2dbf854e2b0c3e50b00ccf5e208dc1b6bef678938bbb14d6c7b8e17129d92d8d";
public static const SecretKey:String = "57330da6ae3c6a4761b12610dfa1be524d1664874395e2eb83d6885a96130d27";
public static const ProjectNo:String = "838085547821";
public static const UserId:String = "jue";
}
}
what went wrong? pls help me. I'm using Air version 15.0.