phrase / android-sdk-example Goto Github PK
View Code? Open in Web Editor NEWAndroid demo application to see Phrase OTA in action
Home Page: https://phrase.com
License: MIT License
Android demo application to see Phrase OTA in action
Home Page: https://phrase.com
License: MIT License
Hello, I've encountered following issue when using phraseapp OTA library for my project.
Sometimes gradle is unable to download aar for the dependency (it returns 401 Unauthorized) if I also use another private jitpack library in the project.
When I use phraseapp lib alone it works perfect and always download the dependency during gradle sync.
I created an issue on jitpack's repo with detailed description (jitpack/jitpack.io#3759) , but I'm not sure if the problem is on their side. Maybe you can take a look on it?
Hello,
I noticed a crash the first time of running the app with the SDK integrated.
When applying the call to Phrase.wrapApplicationContext()
on attachBaseContext
:
override fun attachBaseContext(base: Context?) {
base
?.let { super.attachBaseContext(Phrase.wrapApplicationContext(it)) }
?: run { super.attachBaseContext(base) }
}
The app crashes, with the following stack:
E: FATAL EXCEPTION: main
Process: com.mypackage, PID: 15357
java.lang.RuntimeException: Unable to instantiate receiver com.google.firebase.iid.FirebaseInstanceIdReceiver: java.lang.ClassCastException: com.phrase.android.sdk.inject.PhraseContextWrapper cannot be cast to android.app.ContextImpl
at android.app.ActivityThread.handleReceiver(ActivityThread.java:3576)
at android.app.ActivityThread.access$1300(ActivityThread.java:238)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1798)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7073)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965)
Caused by: java.lang.ClassCastException: com.phrase.android.sdk.inject.PhraseContextWrapper cannot be cast to android.app.ContextImpl
at android.app.ActivityThread.handleReceiver(ActivityThread.java:3560)
at android.app.ActivityThread.access$1300(ActivityThread.java:238)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1798)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7073)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965)
Does the SDK have any incompatibility with Firebase? Any recommendations on that?
I also noticed that if the app doesn’t override the attachBaseContext
, all translations work, and no crashes are seen.
Do we really override attachBaseContext
in our Application?
Thank you.
I try to change appcompat 1.2.0 instead of 1.1.0 but it doesn't work.
I'm not sure it's about this issue below. Please verify it.
Our company has a plan to use this service.
https://stackoverflow.com/questions/55265834/change-locale-not-work-after-migrate-to-androidx
Is there a nice way to implement Phrase OTA - without creating a BaseActivity? But instead use composition?
I'm talking about these instructions: https://help.phrase.com/help/android-sdk-installation-instructions
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.