Still no dice. I am pretty sure I am configured ok with google because I can get the the remoteRegistration+token just fine when I build with the non-enterprise version, but as soon as I build with enterprise it doesnt show up.
Here is what I have -
My android manifest looks like this:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> package="com.mycompany.myapp"<br> android:versionCode="33"<br> android:versionName="3.3"<br> android:installLocation="auto"><br><br> <uses-sdk android:minsdkversion="8" android:targetsdkversion="16"></uses-sdk><br><br> <!-- GCM --><br> <permission android:name="com.mycompany.myapp.permission.C2D_MESSAGE" android:protectionlevel="signature"></permission><br><br> <!-- Permissions required by this app. --><br> <uses-permission android:name="com.android.vending.BILLING"></uses-permission><br> <uses-permission android:name="android.permission.INTERNET"></uses-permission><br> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"></uses-permission><br> <uses-permission android:name="android.permission.READ_PHONE_STATE"></uses-permission><br> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"></uses-permission> <!--tapjoy--><br> <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"></uses-permission> <!--tapjoy--><br><br> <uses-permission android:name="android.permission.GET_ACCOUNTS"></uses-permission><br> <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"></uses-permission><br> <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE"></uses-permission><br> <uses-permission android:name=".permission.C2D_MESSAGE"></uses-permission><br><br> <!-- Informs the app store that this app requires OpenGL ES 1.1 as a minimum. Required by Corona. --><br> <uses-feature android:glesversion="0x00010001"></uses-feature><br><br> <!-- Informs the app store what features are required or are optional for this app. --><br> <!-- Setting the telephony feature to not required allows this app to be installed by devices that are not phones. --><br> <uses-feature android:name="android.hardware.telephony" android:required="false"></uses-feature><br> <!-- Listens for Google Cloud Messaging push notifications and registration messages. --><br> <receiver android:name="com.ansca.corona.notifications.GoogleCloudMessagingBroadcastReceiver"> android:permission="com.google.android.c2dm.permission.SEND" ><br> <intent-filter><br> <action android:name="com.google.android.c2dm.intent.RECEIVE"></action><br> <action android:name="com.google.android.c2dm.intent.REGISTRATION"></action><br> <category android:name="."></category><br> </intent-filter><br> </receiver><br><br> <application android:name="CoronaApplication"> android:label="Myapp"<br> android:hardwareAccelerated="true"<br> android:debuggable="true"<br> android:icon="@drawable/icon" ><br> <!-- The main Corona activity that runs the Corona project. --><br> <activity android:name="com.ansca.corona.CoronaActivity"> android:screenOrientation="portrait"<br> android:configChanges="keyboardHidden|orientation|screenSize"<br> android:label="Phrases"<br> android:launchMode="singleTask"<br> android:theme="@android:style/Theme.NoTitleBar.Fullscreen"><br> <intent-filter><br> <action android:name="android.intent.action.MAIN"></action><br> <category android:name="android.intent.category.LAUNCHER"></category><br> </intent-filter><br> </activity><br><br> <!-- Other Corona activities that can be launched by the main Corona activity. --><br> <activity android:name="com.ansca.corona.CameraActivity"> android:theme="@android:style/Theme.NoTitleBar.Fullscreen"<br> android:configChanges="keyboardHidden|orientation|screenSize"<br> android:screenOrientation="portrait" /><br> <activity android:name="com.ansca.corona.VideoActivity"> android:theme="@android:style/Theme.NoTitleBar.Fullscreen"<br> android:configChanges="keyboardHidden|orientation|screenSize" /><br><br> <!-- Corona content provider required by the video player and mail app to access this app's local files. --><br> <provider android:name="com.ansca.corona.FileContentProvider"> android:authorities="com.mycompany.myapp.files" /><br><br> <service android:name="BillingService"></service><br><br> <!-- Corona service used to perform background operations such as managing notifications. --><br> <service android:name="com.ansca.corona.CoronaService"></service><br> <br> <receiver android:name="com.ansca.corona.SystemStartupBroadcastReceiver"><br> <intent-filter><br> <action android:name="android.intent.action.BOOT_COMPLETED"></action><br> </intent-filter><br> </receiver><br><br> <!-- Handles local/scheduled notification events. --><br> <receiver android:name="com.ansca.corona.notifications.AlarmManagerBroadcastReceiver"></receiver><br> <receiver android:name="com.ansca.corona.notifications.StatusBarBroadcastReceiver"></receiver><br><br> <!-- Listens for Google Play/Marketplace in-app purchase responses and notifications. --><br> <receiver android:name="com.ansca.corona.purchasing.GoogleStoreBroadcastReceiver"><br> <intent-filter><br> <action android:name="com.android.vending.billing.IN_APP_NOTIFY"></action><br> <action android:name="com.android.vending.billing.RESPONSE_CODE"></action><br> <action android:name="com.android.vending.billing.PURCHASE_STATE_CHANGED"></action><br> </intent-filter><br> </receiver><br><br> </provider></activity></activity></application><br></manifest>
and then in my config.lua i have this:
application =
{
content =
{
width = c\_width,
height = c\_height,
scale = c\_scale
},
notification =
{
iphone =
{
types =
{
"badge", "sound", "alert"
}
},
google =
{
projectNumber = "75355xxxxx",
},
}
}
and to collect the events, I have this in my main.lua:
[code]
– -> NOTIFICATIONS
local function onNotification( event )
fxpcall(function()
if(event.token ~= nil) then
notification_token = event.token – setting global for now
end
if event.type == “remoteRegistration” then
native.showAlert( “remoteRegistration”, event.token, { “OK” } )
elseif event.type == “remote” then
user.getUser(nil, false)
native.showAlert( “Alert”, event.alert, { “OK” } )
–native.showAlert( “remote”, json.encode( event ), { “OK” } )
end
end)
end
Runtime:addEventListener( “notification”, onNotification)
– NOTIFICATION END
[/code] [import]uid: 95944 topic_id: 34526 reply_id: 138197[/import]