forcedotcom / SalesforceMobileSDK-Package

BSD 3-Clause "New" or "Revised" License
22 stars 20 forks source link

IOS App restarts automatically after login authentication done #257

Closed iamRAJASHEKAR closed 2 years ago

iamRAJASHEKAR commented 2 years ago

IOS app restarts automatically ,after successful authentication by using oauth.authenticate() on success callback it automatically restarts app.

wmathurin commented 2 years ago

It won't if you use "deferred login". For more information, see https://developer.salesforce.com/docs/atlas.en-us.mobile_sdk.meta/mobile_sdk/hybrid_deferred_login.htm?q=defer

iamRAJASHEKAR commented 2 years ago

@wmathurin yeah i had followed "differd login" as suggested in salesforce official documentation . Below is the link which i used for react native differed login https://developer.salesforce.com/docs/atlas.en-us.mobile_sdk.meta/mobile_sdk/react_native_new_project.htm?q=defer . Steps i followed to create project 1.Created project with forcereact createWithTemplate 2.I had given template as ReactNativeDeferredTemplate 3.After successful project creation switched to IOS folder and opened in Xcode ,and started metro bundler and ran IOS app . 4.Changed url in info.plist with our URL. 5.After successful launch on simulator i clicked on login and provided details to login ,on click of allow permission app restarted completely . we are facing this issue as restarting whole app is uncertain and causing disturbed flow . Kindly assist in this @wmathurin .