Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 18    Views: 192

Masons App Design
Aspiring developer
Profile
Posts: 206
Reg: Aug 06, 2013
Andrews, TX
12,660
03/10/14 02:08 PM (10 years ago)

Parse how to.

I have been reading the forum threads on using parse for push notifications and since I am still hosted on BT I think this would be my best bet. I have not seent any how to tutorials out there for BT. Does anyone have any good suggestions to find soemthing like this?
 
feraco
Aspiring developer
Profile
Posts: 705
Reg: Jan 23, 2012
nyc
15,050
like
03/10/14 04:42 PM (10 years ago)
I have how tos for parse I will post tomorrow.
 
Masons App Design
Aspiring developer
Profile
Posts: 206
Reg: Aug 06, 2013
Andrews, TX
12,660
like
03/10/14 05:08 PM (10 years ago)
Awesome that is great thank you.
 
farcat
buzztouch Evangelist
Profile
Posts: 1008
Reg: Jan 27, 2012
France
13,230
like
03/11/14 03:07 AM (10 years ago)
Warning, Parse does not play well with IOS apps when offline. There are a few posts about this issue, might be worth having a look at these before you start. Cheers, Farcat
 
feraco
Aspiring developer
Profile
Posts: 705
Reg: Jan 23, 2012
nyc
15,050
like
03/11/14 04:48 AM (10 years ago)
Here are some docs from my parse channel plug in. how to doc iOS- https://drive.google.com/file/d/0B1LLiM88XN8wMDhLS2tTdUZIeG8/edit?usp=sharing how to doc android- https://drive.google.com/file/d/0B1LLiM88XN8wT0RTcXRYenlHUzg/edit?usp=sharing For push notifications to work properly you must also make sure you set up push through the apple developers account and parse.com this first part of this tutorial shows you how. https://www.parse.com/tutorials/ios-push-notifications appdelegate.m iOS 2.0 sample- https://drive.google.com/file/d/0B1LLiM88XN8wZkZPN2RFUXhPSTg/edit?usp=sharing appdelegate.m iOS 3.0 sample- https://drive.google.com/file/d/0B1LLiM88XN8wMjNHdEtQV3JEWUk/edit?usp=sharing
 
Masons App Design
Aspiring developer
Profile
Posts: 206
Reg: Aug 06, 2013
Andrews, TX
12,660
like
03/11/14 05:38 AM (10 years ago)
When you say offline, you mean when the device does not have internet service correct? Thank you I appreciate this. Also congrats on the success with your apps, I was reading the BT blog about what you have been doing and hope to be to that point one of these days.
 
farcat
buzztouch Evangelist
Profile
Posts: 1008
Reg: Jan 27, 2012
France
13,230
like
03/11/14 06:08 AM (10 years ago)
Hi @Masons App Design, Exactly, I mean when the device does not have internet service. Otherwise it works but I see it as a put down for the users. Here are some of the threads I was referring to: http://www.buzztouch.com/forum/thread.php?tid=68DDDC103E6A11CF2D0095E&currentPage=1 http://www.buzztouch.com/forum/thread.php?tid=6CA00EEDDED359A3AF7D260&sortColumn=FT.id&sortUpDown=DESC&currentPage=1 Let us know how you get on. Cheers, Farcat
 
Masons App Design
Aspiring developer
Profile
Posts: 206
Reg: Aug 06, 2013
Andrews, TX
12,660
like
03/11/14 06:18 AM (10 years ago)
Do you still use parse? I was looking at pushbots which gives you 1.5 million pushes a month but not sure if anyone has used it before. I haven't found any threads on it.
 
farcat
buzztouch Evangelist
Profile
Posts: 1008
Reg: Jan 27, 2012
France
13,230
like
03/11/14 06:22 AM (10 years ago)
I don't, I use http://www.pushwoosh.com/ and I am very happy with it. Maybe @feraco has found a solution to the Parse issue?
 
Masons App Design
Aspiring developer
Profile
Posts: 206
Reg: Aug 06, 2013
Andrews, TX
12,660
like
03/11/14 06:27 AM (10 years ago)
Ok I will give it a try. If not I may try using pushbots. Just to clarify though I can still use these services even though I am hosted on BT correct?
 
Masons App Design
Aspiring developer
Profile
Posts: 206
Reg: Aug 06, 2013
Andrews, TX
12,660
like
03/11/14 05:48 PM (10 years ago)
Hey guys so I went a different route and tried pushbots. I did everything on the website but now I get this message in my console: [2014-03-11 19:43:15 - Dex Loader] Unable to execute dex: Multiple dex files define Lcom/google/android/gcm/GCMBaseIntentService; [2014-03-11 19:43:15 - andrewsisd] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lcom/google/android/gcm/GCMBaseIntentService; anyone got any suggestions?
 
farcat
buzztouch Evangelist
Profile
Posts: 1008
Reg: Jan 27, 2012
France
13,230
like
03/12/14 01:19 AM (10 years ago)
Hi, I am not familiar with pushbots (and not familar with Android in general) but I came across this: http://stackoverflow.com/questions/2687773/android-conversion-to-dalvik-format-failed-unable-to-execute-dex-null Have you cleaned your project? Are you running on an actual device? Cheers, Farcat
 
farcat
buzztouch Evangelist
Profile
Posts: 1008
Reg: Jan 27, 2012
France
13,230
like
03/12/14 01:20 AM (10 years ago)
 
Masons App Design
Aspiring developer
Profile
Posts: 206
Reg: Aug 06, 2013
Andrews, TX
12,660
like
03/12/14 05:29 AM (10 years ago)
I am not sure what you mean by cleaned the project, but I am running it on an android tablet and a galaxy s2 phone.
 
Masons App Design
Aspiring developer
Profile
Posts: 206
Reg: Aug 06, 2013
Andrews, TX
12,660
like
03/12/14 05:41 AM (10 years ago)
Ok I just read the threads and I understand what you mean. no I have not cleaned the project but I will try that as soon as I get home.
 
Masons App Design
Aspiring developer
Profile
Posts: 206
Reg: Aug 06, 2013
Andrews, TX
12,660
like
03/13/14 05:11 AM (10 years ago)
@farcat I got the errors to clear by deleting the GCM jar file in the libs folder. I think it was intefering with the pushbots jar file. The pushes work except once you send a push the app crashes. Below is pushbots suggestion on how to correct it but I am not sure what it means as I am not much of a code person: 6. Specify the name of your Application subclass in <application> tag. <application android:allowBackup="true" android:icon="@drawable/ic_launcher" android:name="PB_PACKAGE.MyApplication" android:label="@string/app_name" android:theme="@style/AppTheme" > 7. create your Application subclass mentioned above in AndroidManifest.xml , and paste the code below after updating your Pushbots Application ID,Sender ID and PACKAGE . (Show me how ?). package PB_PACKAGE;import com.pushbots.push.Pushbots;import android.app.Application;public class MyApplication extends Application { @Override public void onCreate() { super.onCreate(); Pushbots.init(this, SENDER_ID,PUSHBOTS_APPLICATION_ID); } } I have looked at the show me section as well but since it only shows a test application I am not sure which file to add this to.
 
Patrickmotox
Aspiring developer
Profile
Posts: 89
Reg: Dec 10, 2013
Cameron Park, C...
7,090
like
03/18/14 05:05 PM (10 years ago)
Setting up Parse with BT 3.0, anyone have any info. I keep getting Lcom errors when it gets to initializing BT_gcmConfig.java. Just wondering if anyone else is seeing this.
 
Patrickmotox
Aspiring developer
Profile
Posts: 89
Reg: Dec 10, 2013
Cameron Park, C...
7,090
like
03/18/14 05:34 PM (10 years ago)
Setting up Parse with BT 3.0, anyone have any info. I keep getting Lcom errors when it gets to initializing BT_gcmConfig.java. Just wondering if anyone else is seeing this. I have set it up on another app and this is what I am getting. I can send a message from Parse console. I recieve it on my device and can see it at the top of the screen. If it is a long message it slowly scrolls. Seems to work well. The App shuts down as soon as the phone vibrates and chimes and the message appears at the top of my phone. It appears there is no way for the message to be shown in the buzztouch app.??? complains about no drawable....I don't know. Here is the log cat. It is complaining of the Google GCM project number as well, but there isn't any with parse, so.??????? any Ideas? 03-18 17:18:06.700: W/ZZ(2984): BT_activity_host:handleReportToCloudResults server data not changed, no refresh needed 03-18 17:18:42.095: V/GCMBroadcastReceiver(2984): onReceive: com.google.android.c2dm.intent.RECEIVE 03-18 17:18:42.095: V/GCMRegistrar(2984): Setting the name of retry receiver class to com.kidlocator2.BT_gcmReceiver 03-18 17:18:42.105: V/GCMBroadcastReceiver(2984): GCM IntentService class: com.kidlocator2.BT_gcmIntentService 03-18 17:18:42.105: V/GCMBaseIntentService(2984): Acquiring wakelock 03-18 17:18:42.115: W/ZZ(2984): BT_gcmConfig:getGCMProjectNumber. Using Google GCM Project Number in AndroidManifest: "YOUR_GOOGLE_GCM_PROJECT_NUMBER_GOES_HERE" 03-18 17:18:42.125: V/GCMBaseIntentService(2984): Intent service name: GCMIntentService-YOUR_GOOGLE_GCM_PROJECT_NUMBER_GOES_HERE-1 03-18 17:18:42.125: W/ZZ(2984): BT_gcmIntentService:CONSTRUCTOR Google GCM Project ID: YOUR_GOOGLE_GCM_PROJECT_NUMBER_GOES_HERE 03-18 17:18:42.145: W/ZZ(2984): BT_gcmIntentService:onMessage notification: null 03-18 17:18:42.145: W/ZZ(2984): BT_gcmIntentService:generateNotification Message: null 03-18 17:18:42.155: E/com.parse.ParseNotificationManager(2984): Icon id 2130837708 is not a valid drawable. Trying to fall back to default app icon. 03-18 17:18:42.185: V/GCMBaseIntentService(2984): Releasing wakelock 03-18 17:18:42.185: W/dalvikvm(2984): threadid=14: thread exiting with uncaught exception (group=0x41573930) 03-18 17:18:42.185: E/AndroidRuntime(2984): FATAL EXCEPTION: IntentService[GCMIntentService-YOUR_GOOGLE_GCM_PROJECT_NUMBER_GOES_HERE-1] If I can get past this, it will be pretty cool... ":^)
 
Patrickmotox
Aspiring developer
Profile
Posts: 89
Reg: Dec 10, 2013
Cameron Park, C...
7,090
like
03/18/14 07:14 PM (10 years ago)
this is a different test, same app, same error. 03-18 19:13:58.199: W/dalvikvm(5453): threadid=14: thread exiting with uncaught exception (group=0x41573930) 03-18 19:13:58.199: E/AndroidRuntime(5453): FATAL EXCEPTION: IntentService[GCMIntentService-Just a Test-2] 03-18 19:13:58.199: E/AndroidRuntime(5453): java.lang.IllegalMonitorStateException: object not locked by thread before notify() 03-18 19:13:58.199: E/AndroidRuntime(5453): at java.lang.Object.notify(Native Method) 03-18 19:13:58.199: E/AndroidRuntime(5453): at com.kidlocator2.BT_gcmIntentService.generateNotification(BT_gcmIntentService.java:152) 03-18 19:13:58.199: E/AndroidRuntime(5453): at com.kidlocator2.BT_gcmIntentService.onMessage(BT_gcmIntentService.java:89) 03-18 19:13:58.199: E/AndroidRuntime(5453): at com.google.android.gcm.GCMBaseIntentService.onHandleIntent(GCMBaseIntentService.java:223) 03-18 19:13:58.199: E/AndroidRuntime(5453): at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65) 03-18 19:13:58.199: E/AndroidRuntime(5453): at android.os.Handler.dispatchMessage(Handler.java:99) 03-18 19:13:58.199: E/AndroidRuntime(5453): at android.os.Looper.loop(Looper.java:137) 03-18 19:13:58.199: E/AndroidRuntime(5453): at android.os.HandlerThread.run(HandlerThread.java:60) 03-18 19:13:58.269: W/ZZ(5453): BT_screen_menuButtons:onPause JSON itemId: "5CEAF026F3D30721BAE063C" itemType: "BT_screen_menuButtons" itemNickname: "NEVER LOST" 03-18 19:13:58.269: W/ZZ(5453): BT_activity_host:onPause 03-18 19:13:58.940: W/ZZ(5453): kidlocator2_appDelegate: onTrimMemory with level: 20 03-18 19:13:58.970: W/ZZ(5453): BT_screen_menuButtons:onStop JSON itemId: "5CEAF026F3D30721BAE063C" itemType: "BT_screen_menuButtons" itemNickname: "NEVER LOST" 03-18 19:13:58.990: W/ZZ(5453): BT_activity_host:onStop 03-18 19:13:59.010: W/ZZ(5453): BT_screen_menuButtons:onDestroy JSON itemId: "5CEAF026F3D30721BAE063C" itemType: "BT_screen_menuButtons" itemNickname: "NEVER LOST" 03-18 19:13:59.010: W/ZZ(5453): BT_activity_host:onDestroy
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.