<div dir="ltr">Hi Corinne,<div><br></div><div>I think the intention of this feature is that the developer doesn't need to call init again if the initial init call is failed due to network issues. Developer can continue use FH.cloud calls and the error callback will be invoked if the init is failed again.</div><div><br></div><div>It is not a feature that will be used explicitly, and I think it is ok if we want to change it. Just need to make it clear how reconnection should be handled.</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 8, 2016 at 1:07 PM, Corinne Krych <span dir="ltr"><<a href="mailto:corinnekrych@gmail.com" target="_blank">corinnekrych@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello guys,<div><br></div><div>Working on offline detection on the Swift FH SDK, I bumped into this behaviour: if FH.init fails due to offline mode (no Wifi or Cell connection) the failure callback is executed (as expected). As the connection is back, a FH.init with a null completion handle is executed again (silently).</div><div><br></div><div>See </div><div>- for iOS: </div><div><a href="https://github.com/feedhenry/fh-android-sdk/blob/master/fh-android-sdk/src/main/java/com/feedhenry/sdk/FH.java#L192-L194" target="_blank">https://github.com/feedhenry/fh-android-sdk/blob/master/fh-android-sdk/src/main/java/com/feedhenry/sdk/FH.java#L192-L194</a><br></div><div>- for Andrdoid:</div><div><a href="https://github.com/feedhenry/fh-ios-sdk/blob/master/fh-ios-sdk/FH.m#L203-L205" target="_blank">https://github.com/feedhenry/fh-ios-sdk/blob/master/fh-ios-sdk/FH.m#L203-L205</a><br></div><div><br></div><div>My question is: </div><div>What is the use case for this behaviour? </div><div>If you do you call with imbricated callback as the initial init failed, even though the init is retried with a null callback, the app has no mean to know the FH.init has succeed and the app is ready.</div><div><br></div><div>If you use this feature, feedback is welcome.</div><div><br></div><div>++</div><span class="HOEnZb"><font color="#888888"><div>Corinne.</div></font></span></div>
<br>_______________________________________________<br>
feedhenry-dev mailing list<br>
<a href="mailto:feedhenry-dev@redhat.com">feedhenry-dev@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/feedhenry-dev" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/feedhenry-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Wei Li<br>Red Hat email address: <a href="mailto:wei.li@redhat.com" target="_blank">wei.li@redhat.com</a><br>Senior Software Engineer</div></div>
</div>