+ Start a Discussion

onstatuschange does not works on mobile

I have aura component 
<aura:component  implements="flexipage:availableForRecordHome,force:hasRecordId,lightning:actionOverride" access="global">
    <aura:attribute name="PATEST" type="CTPHARMA__Activity__c" />
    <aura:handler name="init" value="{!this}" action="{!c.init}" />  
     <div style="background-color:white">
    <lightning:flow aura:id="PATEST" onstatuschange="{!c.gotoURL}"/>

and controller 
    init : function (component) {
        // Find the component whose aura:id is "flowData"
        var flow = component.find("PATEST");
        // In that component, start your flow. Reference the flow's Unique Name.
gotoURL : function (component, event, helper) {
         if(event.getParam("status") === "FINISHED") {
      var outputVariables = event.getParam("outputVariables");
      var outputVar;
      for(var i = 0; i < outputVariables.length; i++) {
         outputVar = outputVariables[i];
         if(outputVar.name === "redirect") {
            var urlEvent = $A.get("e.force:navigateToSObject");
               "recordId": outputVar.value,
               "isredirect": "true"

onstatuschange="{!c.gotoURL}" works perfectly fine inside desktop Salesforce but on mobile, it is not. It just returns to the first screen of the flow.
Is there any way to redirect to the created with the flow record inside the mobile app?
Anky KolaAnky Kola

Hi, Same Problem with me.

love status (https://lovequotes.co.in/love-status/) and sad status (https://lovequotes.co.in/sad-status/)