forcedotcom / SalesforceMobileSDK-ReactNative

BSD 3-Clause "New" or "Revised" License
49 stars 54 forks source link

App Crashes on logout #349

Closed manishCapG closed 11 months ago

manishCapG commented 11 months ago
Screenshot 2023-12-14 at 6 04 37 PM Screenshot 2023-12-14 at 6 04 03 PM

When I logout I am facing logout issue as attached in screenshot. This issue i face rare and sometimes.

Can you please look into? and provide resolution

I am using react-native force version #v10.2.0

wmathurin commented 11 months ago

Are you using MobileSync? Could you stop all sync operations in flight before starting the logout? See https://developer.salesforce.com/docs/atlas.en-us.noversion.mobile_sdk.meta/mobile_sdk/entity_framework_stop_start_sync_operations.htm

manishCapG commented 11 months ago

@wmathurin Please send me react-native link How Can I stop all sync operations before starting the logout ?

wmathurin commented 11 months ago

It's not exposed to React Native at this point. You will have to call it from native code.

manishCapG commented 11 months ago

@wmathurin Can you write an example How ?

wmathurin commented 11 months ago

It will be fixed in the next version of Mobile SDK. See https://github.com/forcedotcom/SalesforceMobileSDK-ReactNative/pull/351