Closed simonsturge closed 6 months ago
do you use a "static" build ?
I cannot reproduce your issue :/
can you try this :
const { shareIntent, resetShareIntent } = useShareIntent({ resetOnBackground: false });
import { clearShareIntent } from "expo-share-intent";
useEffect(() => {
const subscription = AppState.addEventListener("change", (nextAppState) => {
if (appState.current === "active" &&
["inactive", "background"].includes(nextAppState)
) {
console.debug("to-background");
clearShareIntent(`${Constants.expoConfig?.scheme}ShareKey`);
}
appState.current = nextAppState;
});
return () => {
subscription.remove();
};
}, []);
if it display "to-background" and not crash i can do a patch...
do you use a "static" build ?
Yes, it's a requirement of Firebase I believe
if it display "to-background" and not crash i can do a patch...
it does display "to-background", no crash when handled manually
Thanks!
fixed in v1.1.1 and v0.3.1. fill free to reopen if the problem persist
In the new 1.1.0 version, the app is crashing when backgrounding with the following log: