Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-4767

Moodle Workplace App (mmworkplace): Login by Deep Link succeeds but logged In user is not on screen

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • 4.4.1
    • Accounts
    • 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

            Unassigned Unassigned
            fhofmann Frank Hofmann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.