1

我尝试使用此 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 构建的。

谁来帮帮我 ?

4

3 回答 3

3

他们肯定需要为您更新扩展。有一些微妙的变化。如果您有兴趣,我们刚刚在此处更新了我们的 distriqt 原生扩展包。

于 2012-07-19T08:14:49.037 回答
1

这意味着他们仍在使用 C2DM 并且 android 已停止接受新的 C2DM 注册。

您需要等到freshplanet 为GCM 构建一个解决方案。

我希望你明白。

于 2012-07-12T10:57:40.790 回答
-1

您可以使用我在 Git hub 上的示例轻松地将推送通知集成到您的 Android Flash 应用程序中,按照自述文件中编写的步骤进行操作

于 2014-02-20T08:22:05.093 回答