[Flex] Unable to register android device for push notification

0 votes

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.

closed with the note: resolved
asked Nov 25, 2014 in App42 Cloud API-BaaS by Juliana Jasman (10 points)
closed Nov 27, 2014 by Juliana Jasman
Hey Juliana, Can you please share the logs as well if you are using eclipse you can share logcat logs that may helpful for us to track the issue.
Hope your internet Connectivity working fine
Nvm. I've got the solution already. thanks

1 Answer

0 votes
Hello Juliana,
 
Thanks for sharing all the details with us.
We have not tested on Air version 15.0. Let us give some more time, we will test & let you know for the same.
 
Thanks for your patience & co-operation with us.
Himanshu Sharma
answered Nov 25, 2014 by hs00105 (2,005 points)
Nvm. I've got the solution already. thanks
im getting same problem please help me
Hello Adarsh,

Kindly find your answer in this thread & let us know if it helps:

http://forum.shephertz.com/?qa=4578/device-not-registered-in-push-notification.

Himanshu Sharma
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...