marketo / android-sdk Goto Github PK
View Code? Open in Web Editor NEWThe Marketo Mobile SDK allows integration with Marketo Mobile Engagement.
License: Other
The Marketo Mobile SDK allows integration with Marketo Mobile Engagement.
License: Other
Hello everyone,
I'm using Marketo SDK to push notifications for my React Native project. I have an issue when the user logout, uninitializeMarketoPush of SDK is called, and I saw logs from Makero SDK: 'Unregistered device from FCM'. But when I push a notification from Marketo admin
, the app still receives a notification.
You can see my screenshot below.
OS: Android
Version: 11
There is no way to tell what SDK version this library is written against because android:targetSdkVersion
is not set in the AAR's AndroidManifest.xml.
Hello !
I see in the README of this repository that the latest release here is 0.8.2. From what I see on maven repository, you have shipped a version 0.8.4. However I can't download it on maven repository https://mvnrepository.com/artifact/com.marketo/MarketoSDK/0.8.4, throws a 403 forbidden !
Could you light me on this, I would like to take the latest aar.
Thanks.
Google has replaced GCM with FCM (Firebase Cloud Messaging). This library should add support for FCM or add a variant that does.
Failed to initialize for the Android sdk, please support as soon as possible. As when i went through your customer support care. It won't even connect me to the support agent.
I'm using the latest Marketo SDK 0.8.0 and I'm getting reports of ANRs in production. Please investigate and fix as soon as you can. Please and thank you!
Stacktrace:
ANR: Application did not respond for at least 5000 ms
at com.marketo.Marketo.b(SourceFile:20822)
at com.marketo.Marketo$a.onActivityStopped(SourceFile:947)
at android.app.Application.dispatchActivityStopped(Application.java:282)
at android.app.Activity.onStop(Activity.java:1984)
at androidx.fragment.app.FragmentActivity.onStop(FragmentActivity.java:541)
at androidx.appcompat.app.AppCompatActivity.onStop(AppCompatActivity.java:185)
Threads:
SourceFile:20822com.marketo.Marketo.b
SourceFile:947com.marketo.Marketo$a.onActivityStopped
Application.java:282android.app.Application.dispatchActivityStopped
Activity.java:1984android.app.Activity.onStop
FragmentActivity.java:541androidx.fragment.app.FragmentActivity.onStop
AppCompatActivity.java:185androidx.appcompat.app.AppCompatActivity.onStop
Base.java:95com.mobilemarket.app.Base.onStop
MyActivity.kt:214com.mobilemarket.onboarding.MyActivity.onStop
Instrumentation.java:1432android.app.Instrumentation.callActivityOnStop
Activity.java:7653android.app.Activity.performStop
ActivityThread.java:4372android.app.ActivityThread.callActivityOnStop
ActivityThread.java:4350android.app.ActivityThread.performStopActivityInner
ActivityThread.java:4425android.app.ActivityThread.handleStopActivity
TransactionExecutor.java:192android.app.servertransaction.TransactionExecutor.performLifecycleSequence
TransactionExecutor.java:165android.app.servertransaction.TransactionExecutor.cycleToPath
TransactionExecutor.java:142android.app.servertransaction.TransactionExecutor.executeLifecycleState
TransactionExecutor.java:70android.app.servertransaction.TransactionExecutor.execute
ActivityThread.java:1947android.app.ActivityThread$H.handleMessage
Handler.java:106android.os.Handler.dispatchMessage
Looper.java:214android.os.Looper.loop
ActivityThread.java:7032android.app.ActivityThread.main
Method.java:-2java.lang.reflect.Method.invoke
RuntimeInit.java:494com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run
ZygoteInit.java:965com.android.internal.os.ZygoteInit.main
Hi, I'm using proguard with Marketo version 0.7.7 and after adding this library to my project I can't make a build 'cause I have some troubles with proguard. I've added these lines to rules:
-dontwarn com.marketo.*
-dontnote com.marketo.*
-keep class com.marketo.**{ *; }
But it's not enough as I see. Also, I don't know what is an error here and how fix it, could you review it?
The first one is output without Marketo. The second one - when marketo is in the project.
Here is the stack trace:
Fatal Exception: java.lang.RuntimeException: Unable to start receiver com.marketo.MarketoBroadcastReceiver: java.lang.IllegalStateException: Not allowed to start service Intent { act=com.google.android.c2dm.intent.RECEIVE flg=0x1000010 pkg=com.fivestars.mma cmp=com.fivestars.mma/com.marketo.MarketoIntentService (has extras) }: app is in background uid UidRecord{c72cc0e u0a179 RCVR idle change:idle|uncached procs:1 seq(0,0,0)}
at android.app.ActivityThread.handleReceiver(ActivityThread.java:3194)
at android.app.ActivityThread.-wrap17(Unknown Source)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1672)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
Caused by java.lang.IllegalStateException: Not allowed to start service Intent { act=com.google.android.c2dm.intent.RECEIVE flg=0x1000010 pkg=com.fivestars.mma cmp=com.fivestars.mma/com.marketo.MarketoIntentService (has extras) }: app is in background uid UidRecord{c72cc0e u0a179 RCVR idle change:idle|uncached procs:1 seq(0,0,0)}
at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1521)
at android.app.ContextImpl.startService(ContextImpl.java:1477)
at android.content.ContextWrapper.startService(ContextWrapper.java:650)
at android.content.ContextWrapper.startService(ContextWrapper.java:650)
at marketo.push.MktoWakefulBroadcastReceiver.a(SourceFile:86)
at com.marketo.MarketoBroadcastReceiver.onReceive(SourceFile:42)
at android.app.ActivityThread.handleReceiver(ActivityThread.java:3187)
at android.app.ActivityThread.-wrap17(Unknown Source)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1672)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
Fix might me moving from IntentService
to JobIntentService
.
It doesn't seem that there is any real need to impose the requirement that all consumers of this SDK perform the following ceremony on every Activity in their Application:
- Configure activities. Add Marketo.onStart, Marketo.onStop in all or in base activity as shown below.
This burden can removed from SDK consumers if the Marketo SDK uses Application.ActivityLifecycleCallbacks to do whatever work is necessary in onStart and onStop.
Hi all, first time connecting to android Marketo 0.8.6
I am getting an IOException, 'failed to initialize MarketoSDK 0.8.6 IOException'
Munchkin ID: 824-XEX-790.
I have read on iOS Side that initialization fails because the Marketo subscription is not set up correctly?
Thank you
The LOCATION is classified as a dangerous permission group by Android and therefore requires a permission prompt for targetSdkVersion 23 and higher. Regardless, collecting information about the user's location is a highly offensive practice for applications that do not incorporate location into their functionality. There is no need for Marketo to attempt to collect location information by default.
Downloading and adding an AAR to the project works fine. However it would be much more convenient and quick to get set up if it was added to JCenter and/or MavenCentral so that we could just add one line to a Gradle build file to add the Marketo library.
Could we please have builds deployed to JCenter and/or MavenCentral?
I have added the Marketo android SDK to our app. When minifying the app through ProGuard, I notice that the app is now failing to build as it using a deprecated android method:
Warning:marketo.push.a: can't find referenced method 'void setLatestEventInfo(android.content.Context,java.lang.CharSequence,java.lang.CharSequence,android.app.PendingIntent)' in library class android.app.Notification
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.