Open rg777 opened 5 years ago
From what I have gathered, the ripple
property's setNative
method for android attempts to use the foreground activity (application.android.foregroundActivity
) which normally shouldn't be an issue, but from some digging, the foreground activity is not available to be used until after certain lifecycle events (https://github.com/NativeScript/NativeScript/issues/5307).
In the case of my app and what I experienced, some system actions would cause the activity for my app to be reset/restarted (e.g. changing system device language with app running in background). Once the app was resumed, the set native method for ripple runs too early and the foreground activity isn't ready yet causing the crash.
The following error shows sometimes when I resume the app after closing it. I have noticed that this error started showing after I introduced the "markingMode": "none". Are these correlated?
The project dependencies are as follows: