react-native-intercom icon indicating copy to clipboard operation
react-native-intercom copied to clipboard

Intercom RN "0.63.4" not showing

Open michaelVictoriaDev opened this issue 4 years ago • 1 comments

I try to install the package and set all the example's

import Intercom from 'react-native-intercom-native';

    const [isLauncherVisible, setIsLauncherVisible] = useState(false);

    useEffect(() => {
        async function initIntercom() {
            await Intercom.setApiKey(
                Platform.OS === 'android' ? 'android_sdk-733249ded1e6b04487d59f1cbede3d0*****' : 'ios_sdk-1083f3b9121c3848fa31896f0bb174ee*****'',
                'ta*****'
            );

       
            await Intercom.registerUser(login.loginCredentials.email);
            await Intercom.registerUserWithIdentifier(login.loginCredentials.email, '');
            setIsLauncherVisible(true);
            // Intercom.setUserAttributes({});
        }
        initIntercom();
    }, []);

    useEffect(() => {

        console.log('isLauncherVisible', isLauncherVisible);

        setIsLauncherVisible(true);
        Intercom.presentMessenger()

        Intercom.presentHelpCenter()
    }, [isLauncherVisible]);

But nothings happen or showing

michaelVictoriaDev avatar May 05 '21 07:05 michaelVictoriaDev

I try to close the app and run through,

theres an error show. Could not invoke RNNInterocom.setApiKey null,,

await Intercom.setApiKey( "android_sdk-733249ded1e6b04487d59f1cbede3d0*****", 'ta*****' );

michaelVictoriaDev avatar May 05 '21 07:05 michaelVictoriaDev