[feedhenry-dev] Reachability and FH.init

Corinne Krych corinnekrych at gmail.com
Tue Mar 8 13:07:45 UTC 2016


Hello guys,

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).

See
- for iOS:
https://github.com/feedhenry/fh-android-sdk/blob/master/fh-android-sdk/src/main/java/com/feedhenry/sdk/FH.java#L192-L194
- for Andrdoid:
https://github.com/feedhenry/fh-ios-sdk/blob/master/fh-ios-sdk/FH.m#L203-L205

My question is:
What is the use case for this behaviour?
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.

If you use this feature, feedback is welcome.

++
Corinne.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/feedhenry-dev/attachments/20160308/cd7e25c0/attachment.htm>


More information about the feedhenry-dev mailing list