Closed irbisdev closed 2 years ago
Hi @irbisdev, thank you for reporting it, we will check and return with the answer ASAP.
BR, Olga
Hi @irbisdev, regarding issue with empty chat with disabled controls on iOS, I see from logs that you are testing it on Simulator, but to register your device in Infobip platform( so that it will be able to have In-app chat) we need to receive APNS token, which isn't possible on Simulator, so please check it on the device.
Regarding other questions, I'm in progress with it.
BR, Olga
@riskpp
Thanks for the advice. I checked it works fine on the iOS device.
I checked other things
mobileMessaging.showChat()
shows empty chat on Android 2nd launch
can't reproduce such behaviour, could you may be try again, mb was some temporary issue.<ChatView />
- doesn't work on Android
yes, reproduced it in Example app, somehow ChatView can't get parent view, mb this behaviour connected with Navigation component, which is used in Example, will investigate it further.
But it works like this:
render() {
return (
<SafeAreaView style={{flex: 1}}>
<Text style={{backgroundColor: Colors.primary}}>Chat title</Text>
<ChatView style={{flex: 1}} sendButtonColor={'#FF0000'} />
</SafeAreaView>
);
}
Hello @irbisdev, yesterday we fixed ChatView
React.Component for Android, you can use it with Navigation component as in Example app.
BR, Olga
@riskpp Thanks. It work now on Android
Environment: Xcode 12.5.1 Cocoapods 1.10.1 Gradle 4.1.0 react-native 0.64.2 infobip-mobile-messaging-react-native-plugin 4.0.0
Initialization:
mobileMessaging.showChat();
works almost fine (first func call) on Android, but on IOS - empty state with disabled input.iOS screenshot
Android screenshot (first launch)
Android screenshot (next launch, immediately after the chat is closed)
<ChatView />
- don't work on Android (empty screen without input) and on IOS - empty state with disabled input:iOS screenshot
Android screenshot
iOS logs
``` 2021-07-29 12:23:22:355 [MobileMessaging] π [MobileMessaging] Starting service (with apns registration=true)... 2021-07-29 12:23:22:359 [MobileMessaging] π¬ Unarchived nil from /Users/fredmd/Library/Developer/CoreSimulator/Devices/75F7D8F5-1490-4783-9ED4-4092B4940D71/data/Containers/Data/Application/7D0F7BEA-AFB7-40B3-AD70-F18137758D92/Library/Application Support/com.mobile-messaging.installation 2021-07-29 12:23:23:440 [MobileMessaging] π [MMMessageHandler] starting 2021-07-29 12:23:23:440 [MobileMessaging] π [VersionManager] started... 2021-07-29 12:23:23:441 [MobileMessaging] π [MessagesEvictionOperation] started... 2021-07-29 12:23:23:447 [MobileMessaging] π¬ [Core Data] NO CHANGES IN ** UNNAMED ** CONTEXT - NOT SAVING 2021-07-29 12:23:23:448 [MobileMessaging] π [MessagesEvictionOperation] finished with errors: [] 2021-07-29 12:23:23:468 [MobileMessaging] π [DynamicBaseUrlHTTPSessionManager] Sending request: -H "User-Agent: org.cocoapods.MobileMessaging/9.1.10 reactNative 4.0.0(iOS;14.5;;iPhone Simulator;;io.samokat.timelabse;0.1;iPhone 12;;;)" \ 2021-07-29 12:23:23:470 [MobileMessaging] π [InstallationDataService] starting 2021-07-29 12:23:23:470 [MobileMessaging] π [UserSessionService] starts 2021-07-29 12:23:23:471 [MobileMessaging] π [ApnsRegistrationManager] Registering... 2021-07-29 12:23:23:471 [MobileMessaging] π [UserSessionService] starting 2021-07-29 12:23:23:475 [MobileMessaging] π [ApnsRegistrationManager] setting healthy flag 2021-07-29 12:23:23:481 [MobileMessaging] π [NotificationsInteractionService] starting 2021-07-29 12:23:23:482 [MobileMessaging] π [MMInAppChatService] starting 2021-07-29 12:23:23:485 [MobileMessaging] π [UserDataService] sync user data with server 2021-07-29 12:23:23:485 [MobileMessaging] π [GetChatWidgetOperation] Started... 2021-07-29 12:23:23:486 [MobileMessaging] π¬ Unarchived nil from /Users/fredmd/Library/Developer/CoreSimulator/Devices/75F7D8F5-1490-4783-9ED4-4092B4940D71/data/Containers/Data/Application/7D0F7BEA-AFB7-40B3-AD70-F18137758D92/Library/Application Support/com.mobile-messaging.user 2021-07-29 12:23:23:489 [MobileMessaging] π¬ Unarchived Optional(What am I doing wrong or missing?