-
Bug
-
Resolution: Unresolved
-
Critical
-
None
-
4.4.1
-
MOODLE_404_STABLE
I log into Moodle Workplace App with:
val intent = Intent(
Intent.ACTION_VIEW,
Uri.parse("mmworkplace://https://" + sUserName + "@easywize.com?token=" + sToken + "&redirect=https://easywize.com/my/courses.php")
)
startActivity(intent)
When the cache of the app is empty and no accoung ist present, everything works fine.
But if there are other accounts present , only the list of formerly logged in users is visible.
When I open a different user, then see the login form, then go back ...
... then I see my newly logged in user.From here I can open - in theis example "Daniela Dietrich" and see the courses.
I allso tried this code to send the Deep Link:
val intent = Intent( Intent.ACTION_VIEW, Uri.parse("mmworkplace://https://" + sUserName + "@easywize.com?token=" + sToken + "&redirect=https://easywize.com/my/courses.php"))
val pendingIntent = TaskStackBuilder.create(applicationContext).run {
addNextIntentWithParentStack(intent)
getPendingIntent( 0, PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE )
if (pendingIntent != null) { pendingIntent.send() }
For me the verry best solution would be to delet all cache befor sending the Deep Link.
Is there any possobility to do this by code form an other app?
best regards from germany
Frank Hofmann