function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Akash PuneraAkash Punera 

Not getting record id in New task action override salesforce1 mobile app

I have overriden new task button with a custom component, when opening in lightning it is able to get the record id whereas same component in Mobile app is returning 'Undefined'.
COMPONENT:

<aura:component implements="force:hasRecordId,lightning:actionOverride" access="global">
    <aura:handler name="init" value="{!this}" action="{!c.doInit}"/>
</aura:component>

CONTROLLER:
({
	doInit : function(component, event, helper) {
		alert(component.get("v.recordId"));
	}
})

This is a basic version of the code for reference.