You need to sign in to do that
Don't have an account?
Guduli Das Mohapatra
Lightning component is not working in IOS
I have created one Lightning aura component in Sales cloud which is workinf fine desktop browser, and on the Salesforce App on Android device,but not working in IOS .
var pageReference = {
type: 'standard__component',
attributes: {
componentName: 'c__EditInLineTableOpportunityLighting'
},
state: {
c__refRecordId: component.get("v.recordId")
}
};
component.set("v.pageReference", pageReference);
const navService = component.find('navService');
const pageRef = component.get('v.pageReference');
const handleUrl = (url) => {
window.open(url);
};
const handleError = (error) => {
console.log(error);
};
navService.generateUrl(pageRef).then(handleUrl, handleError);
$A.get("e.force:closeQuickAction").fire();
var pageReference = {
type: 'standard__component',
attributes: {
componentName: 'c__EditInLineTableOpportunityLighting'
},
state: {
c__refRecordId: component.get("v.recordId")
}
};
component.set("v.pageReference", pageReference);
const navService = component.find('navService');
const pageRef = component.get('v.pageReference');
const handleUrl = (url) => {
window.open(url);
};
const handleError = (error) => {
console.log(error);
};
navService.generateUrl(pageRef).then(handleUrl, handleError);
$A.get("e.force:closeQuickAction").fire();
Check below example that matches your requirement :-
https://salesforce.stackexchange.com/questions/54511/why-doesnt-my-lightning-component-work-in-ios
https://developer.salesforce.com/forums/?id=9062I000000Xwz1QAC
Please mark it as the Best Answer so that it can help others in the future.
Regards,
Priya Ranjan
Did you solve the issue? It seems to be related to the state...
Thanks