我尝试使用此 ANE 注册到新 GCM: https ://github.com/freshplanet/ANE-Push-Notification iOS 推送正常,但 Android 版本冻结并显示此跟踪消息:无法识别的事件注册
这是我的 xml 描述符:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<application xmlns="http://ns.adobe.com/air/application/3.2">
<id>com.arthesis.xxxxxxxx</id>
<filename>testPushNotification</filename>
<name>testPushNotification</name>
<versionNumber>1.0</versionNumber>
<initialWindow>
<content>xxxxxxxx.swf</content>
<autoOrients>false</autoOrients>
<fullScreen>true</fullScreen>
<visible>true</visible>
<renderMode>auto</renderMode>
<aspectRatio>landscape</aspectRatio>
</initialWindow>
<icon>
<image48x48>icones/icon-48.png</image48x48>
<image72x72>icones/icon-72.png</image72x72>
</icon>
<iPhone>
<InfoAdditions><![CDATA[<key>UIDeviceFamily</key><array><string>1</string><string>2</string></array>]]></InfoAdditions>
<requestedDisplayResolution>high</requestedDisplayResolution>
<Entitlements><![CDATA[
<key>get-task-allow</key>
<false/>
<key>aps-environment</key>
<string>production</string>
<key>application-identifier</key>
<string>XXXXXXXXX.com.arthesis.xxxxxxxx</string>
<key>keychain-access-groups</key>
<array>
<string>XXXXXXXXX.*</string>
</array>
]]></Entitlements>
</iPhone>
<android>
<manifestAdditions><![CDATA[<manifest android:installLocation="auto">
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.DISABLE_KEYGUARD"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<!-- Only this application can receive the messages and registration result -->
<permission android:name="air.com.arthesis.xxxxxxxx.debug.permission.C2D_MESSAGE" android:protectionLevel="signature" />
<uses-permission android:name="air.com.arthesis.xxxxxxxx.debug.permission.C2D_MESSAGE" />
<!-- This app has permission to register and receive message -->
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<application>
<!-- Only C2DM servers can send messages for the app. If permission is not set - any other app can generate it -->
<receiver android:name="com.arthesis.xxxxxxxx.C2DMBroadcastReceiver"
android:permission="com.google.android.c2dm.permission.SEND">
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<category android:name="air.com.arthesis.xxxxxxxx.debug" />
</intent-filter>
<intent-filter>
<action android:name="com.google.android.c2dm.intent.REGISTRATION" />
<category android:name="air.com.arthesis.xxxxxxxx.debug" />
</intent-filter>
</receiver>
</application>
</manifest>]]></manifestAdditions>
</android>
<supportedLanguages>fr</supportedLanguages>
<versionLabel></versionLabel>
<extensions>
<extensionID>com.freshplanet.AirPushNotification</extensionID>
</extensions>
应用程序是使用 Flash Pro CS6 构建的。
谁来帮帮我 ?