Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 2    Views: 59

Worker73
Android Fan
Profile
Posts: 419
Reg: Feb 06, 2012
Austria, Klagen...
4,490
04/21/16 12:05 PM (8 years ago)

Anybody Have an working PushMessage HowTo? SOLVED!

Hi! Iam Looking for an Working HowTo for: - Not Self Hosted - Android Studio Any Step by Step? I tryed OneSignal but i got 2 Messages Reciving and on Release Compile Dex Errors!?
 
Worker73
Android Fan
Profile
Posts: 419
Reg: Feb 06, 2012
Austria, Klagen...
4,490
like
04/26/16 07:34 AM (8 years ago)
Solution for "Self Hosted" > Android Studio 2.0 > OneSignal SOLVED! Maybe im writing a little bit later an HowTo!
 
Worker73
Android Fan
Profile
Posts: 419
Reg: Feb 06, 2012
Austria, Klagen...
4,490
like
04/26/16 09:09 AM (8 years ago)
Okay Guys... Here is a little Instruction how you can Use "OneSignal" ( https://onesignal.com ) on Android BT Apps... You need: - Self Hosted - Android Studio (Ive tested it with 2.0) - One Signal Account.. Just follow the Documentation under: https://documentation.onesignal.com/docs/android-studio-sdk-installation The Code from Step 2 goes in the "BT_activity_host.java" on line 110 ////////////////////////////////////////////////////////////////////////// //Activity life cycle events. //onCreate @Override public void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); OneSignal.startInit(this).init(); //OneSignal Code BT_debugger.showIt(activityName + ":onCreate"); ////////////////////////////////////////////////////////////////////////// Next DEACTIVATE or DELETE in you AndroidManifest File the Google Cloud Messaging receiver Code: <!-- Google Cloud Messaging <receiver android:name="com.gtitreffen.BT_gcmReceiver" android:permission="com.google.android.c2dm.permission.SEND" > <intent-filter> <action android:name="com.google.android.c2dm.intent.RECEIVE" /> <action android:name="com.google.android.c2dm.intent.REGISTRATION" /> <category android:name="com.gtitreffen" /> </intent-filter> </receiver> <service android:name=".BT_gcmIntentService" />--> THATS ALL! ;-)
 

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.