Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/178.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/110.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 无互联网的对讲机用户注册_Android_Ios_Intercom - Fatal编程技术网

Android 无互联网的对讲机用户注册

Android 无互联网的对讲机用户注册,android,ios,intercom,Android,Ios,Intercom,我分别在和上调用registerUserWithUserId和registerIdentifiedUser来注册用户 如果我在手机没有internet(即无法连接intercom.io服务器)的情况下尝试注册用户,库是否会在返回internet时重试注册用户?或者,当internet返回我自己时,我应该重试注册用户吗 在观察网络流量时,它看起来像是图书馆试图在互联网恢复时重新注册用户(这太棒了)。但是很难确定,因为这个用例没有明确的文档 iOS: 安卓: Intercom.client().re

我分别在和上调用registerUserWithUserId和registerIdentifiedUser来注册用户

如果我在手机没有internet(即无法连接intercom.io服务器)的情况下尝试注册用户,库是否会在返回internet时重试注册用户?或者,当internet返回我自己时,我应该重试注册用户吗

在观察网络流量时,它看起来像是图书馆试图在互联网恢复时重新注册用户(这太棒了)。但是很难确定,因为这个用例没有明确的文档

iOS:

安卓:

Intercom.client().registerIdentifiedUser(new Registration().withUserId(userId).withEmail(email));

是的,当您恢复internet连接时,图书馆将与对讲机联系。在使用对讲机时,不需要考虑网络状态

注册用户所做的最重要的事情是持久化用户ID和电子邮件。这样可以确保即使您完全没有连接,用户也会在下一次机会被发送到对讲机

我希望这能回答你的问题
Intercom.client().registerIdentifiedUser(new Registration().withUserId(userId).withEmail(email));