I'm back at it with more issues in getting PUSH notifications to work with GCM.
I've updates the Android SDK to the most recent I've checked that the GooglePlayServices.jar file exists in the titanium app modules folders (I've had issues in the past where it gets included in both the MAP and the CLOUDPUSH modules, where the solution was to remove one copy from the folder.
Below are the build messages:
O] : e = {"type":"click","source":{"visible":true,"size":{"height":0,"y":0,"width":0,"x":0},"bubbleParent":true,"message":"Click 'Yes' to register for push notifications","apiName":"Ti.UI.AlertDialog","keepScreenOn":false,"backgroundRepeat":false,"title":"Register for Push Notifications","buttonNames":["Yes","No"],"rect":{"height":0,"y":0,"x":0,"width":0},"enabled":true,"children":[],"id":"dialog","_events":{"click":{}}},"cancel":false,"index":0,"button":true,"bubbles":true,"cancelBubble":false} [INFO] : Clicked button 0 (YES) [WARN] : dalvikvm: VFY: unable to resolve static field 3946 (common_google_play_services_unknown_issue) in Lcom/google/android/gms/R$string; [WARN] : dalvikvm: VFY: unable to resolve static field 3946 (common_google_play_services_unknown_issue) in Lcom/google/android/gms/R$string; [WARN] : dalvikvm: VFY: unable to resolve static field 3941 (common_google_play_services_install_title) in Lcom/google/android/gms/R$string; [WARN] : dalvikvm: VFY: unable to resolve static field 3937 (common_google_play_services_enable_title) in Lcom/google/android/gms/R$string; [WARN] : dalvikvm: VFY: unable to resolve static field 3952 (common_google_play_services_update_title) in Lcom/google/android/gms/R$string; [WARN] : dalvikvm: VFY: unable to resolve static field 3949 (common_google_play_services_unsupported_title) in Lcom/google/android/gms/R$string; [WARN] : dalvikvm: VFY: unable to resolve static field 3945 (common_google_play_services_network_error_title) in Lcom/google/android/gms/R$string; [WARN] : dalvikvm: VFY: unable to resolve static field 3946 (common_google_play_services_unknown_issue) in Lcom/google/android/gms/R$string; [WARN] : dalvikvm: VFY: unable to resolve static field 3946 (common_google_play_services_unknown_issue) in Lcom/google/android/gms/R$string; [WARN] : dalvikvm: VFY: unable to resolve static field 3943 (common_google_play_services_invalid_account_title) in Lcom/google/android/gms/R$string; [WARN] : dalvikvm: VFY: unable to resolve static field 3946 (common_google_play_services_unknown_issue) in Lcom/google/android/gms/R$string; [WARN] : dalvikvm: VFY: unable to resolve static field 3949 (common_google_play_services_unsupported_title) in Lcom/google/android/gms/R$string; [WARN] : dalvikvm: VFY: unable to resolve static field 3938 (common_google_play_services_install_button) in Lcom/google/android/gms/R$string; [WARN] : dalvikvm: VFY: unable to resolve static field 3935 (common_google_play_services_enable_button) in Lcom/google/android/gms/R$string; [WARN] : dalvikvm: VFY: unable to resolve static field 3950 (common_google_play_services_update_button) in Lcom/google/android/gms/R$string; [WARN] : dalvikvm: VFY: unable to resolve static field 3946 (common_google_play_services_unknown_issue) in Lcom/google/android/gms/R$string; [WARN] : dalvikvm: VFY: unable to resolve static field 3940 (common_google_play_services_install_text_tablet) in Lcom/google/android/gms/R$string; [WARN] : dalvikvm: VFY: unable to resolve static field 3939 (common_google_play_services_install_text_phone) in Lcom/google/android/gms/R$string; [WARN] : dalvikvm: VFY: unable to resolve static field 3936 (common_google_play_services_enable_text) in Lcom/google/android/gms/R$string; [WARN] : dalvikvm: VFY: unable to resolve static field 3951 (common_google_play_services_update_text) in Lcom/google/android/gms/R$string; [WARN] : dalvikvm: VFY: unable to resolve static field 3948 (common_google_play_services_unsupported_text) in Lcom/google/android/gms/R$string; [WARN] : dalvikvm: VFY: unable to resolve static field 3944 (common_google_play_services_network_error_text) in Lcom/google/android/gms/R$string; [WARN] : dalvikvm: VFY: unable to resolve static field 3942 (common_google_play_services_invalid_account_text) in Lcom/google/android/gms/R$string; [WARN] : dalvikvm: VFY: unable to resolve static field 3947 (common_google_play_services_unsupported_date_text) in Lcom/google/android/gms/R$string; [WARN] : dalvikvm: VFY: unable to resolve instance field 51 [WARN] : dalvikvm: VFY: unable to resolve static field 3946 (common_google_play_services_unknown_issue) in Lcom/google/android/gms/R$string; [ERROR] : GooglePlayServicesUtil: The Google Play services resources were not found. Check your project configuration to ensure that the resources are included. [WARN] : GooglePlayServicesUtil: Google Play services is missing. [INFO] : ALERT: (KrollRuntimeThread) [489150,496540] Failed to get token for push! Google Play Services is not ready. Error:SERVICE_MISSINGThen I cleaned the project and got these build messages:
[WARN] : dalvikvm: VFY: unable to resolve new-instance 38 (Landroid/app/Notification$Builder;) in Lcom/appcelerator/cloud/push/PushBroadcastReceiver; [ERROR] : dalvikvm: Could not find class 'android.app.Notification$Builder', referenced from method com.appcelerator.cloud.push.PushBroadcastReceiver.showNotification [INFO] : TiRootActivity: (main) [0,0] checkpoint, on root activity create, savedInstanceState: null [WARN] : V8Object: Runtime disposed, cannot set property 'userAgent' [INFO] : TiRootActivity: (main) [0,0] checkpoint, on root activity resume. activity = com.cardinalresponse.bullybuddies.BullyBuddiesActivity@40644a60 [INFO] : APSAnalyticsService: Analytics Service Started [WARN] : BluetoothModule: (KrollRuntimeThread) [4323,4323] Device does not support Bluetooth! [ERROR] : dalvikvm: Could not find class 'android.app.Notification$Builder', referenced from method ti.cloudpush.CloudpushModuleGeneric.showTrayNotification [WARN] : dalvikvm: VFY: unable to resolve new-instance 38 (Landroid/app/Notification$Builder;) in Lti/cloudpush/CloudpushModuleGeneric; [ERROR] : GeolocationModule: (KrollRuntimeThread) [303,4626] Unable to get current position, location is null [INFO] : ALERT: (KrollRuntimeThread) [24,4650] GPS error :"location is currently unavailable." [INFO] : dalvikvm: Could not find method android.view.View.setTranslationX, referenced from method org.appcelerator.titanium.view.TiUIView.resetTranslationX [WARN] : dalvikvm: VFY: unable to resolve virtual method 8724: Landroid/view/View;.setTranslationX (F)V [INFO] : dalvikvm: Could not find method android.view.View.setTranslationY, referenced from method org.appcelerator.titanium.view.TiUIView.resetTranslationY [WARN] : dalvikvm: VFY: unable to resolve virtual method 8725: Landroid/view/View;.setTranslationY (F)V [INFO] : dalvikvm: Could not find method android.view.View.setAlpha, referenced from method org.appcelerator.titanium.view.TiUIView.setAlpha [WARN] : dalvikvm: VFY: unable to resolve virtual method 8682: Landroid/view/View;.setAlpha (F)V [INFO] : ALERT: (KrollRuntimeThread) [2930,7580] Please register your account with Bully Buddies. [INFO] : dalvikvm: Could not find method android.graphics.Bitmap.getByteCount, referenced from method org.appcelerator.titanium.util.TiImageLruCache.sizeOf [WARN] : dalvikvm: VFY: unable to resolve virtual method 729: Landroid/graphics/Bitmap;.getByteCount ()I [WARN] : TiUIScrollView: (main) [466,8046] Scroll direction could not be determined based on the provided view properties. Default VERTICAL scroll direction being used. Use the 'scrollType' property to explicitly set the scrolling direction. [INFO] : APSAnalyticsService: Stopping Analytics Service [INFO] : APSAnalyticsService: Analytics Service Started [INFO] : APSAnalyticsService: Stopping Analytics Service