leanplum / leanplum-android-samples Goto Github PK
View Code? Open in Web Editor NEWSample apps that use the Leanplum Android SDK.
Sample apps that use the Leanplum Android SDK.
hey @federico1525, I noticed that the WAKE_LOCK
and RECEIVE
permissions are defined twice in the manifests for the sample apps. Is that intended? I can create a pr to remove those if you would like
Fatal Exception: java.lang.RuntimeException: Unable to resume activity {android.example/com.android.example.AddressActivity}: java.lang.IllegalArgumentException
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3791)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3832)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1681)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6682)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)
Caused by java.lang.IllegalArgumentException
at android.os.Parcel.readException(Parcel.java:1697)
at android.os.Parcel.readException(Parcel.java:1646)
at android.app.ActivityManagerProxy.isTopOfTask(ActivityManagerNative.java:6617)
at android.app.Activity.isTopOfTask(Activity.java:6172)
at android.app.Activity.onResume(Activity.java:1332)
at android.support.v4.app.FragmentActivity.onResume(SourceFile:437)
at com.leanplum.activities.LeanplumAppCompatActivity.onResume(SourceFile:37)
at com.android.example.BaseActivity.onResume(SourceFile:209)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1277)
at android.app.Activity.performResume(Activity.java:7088)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3768)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3832)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1681)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6682)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)
Custom_FirebaseMessagingService.java
contains the following code:
boolean isLeanPlumPushNotification = (remoteMessage.getData().containsKey("lp_version"));
to check if push message is intended for leanplum, but leanplum SDK has another check inside: messageMap.containsKey("lp_message")
.
So, it looks like the sample and the actual SDK code are not aligned.
Which of the keys should I use?
It isn't very clear from the docs how one should go about disabling the Leanplum SDK when running automated tests. It would be great if you could show an example of how to do it here.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.