iPhone not fetching data

Viewing 7 reply threads
  • Author
    Posts
  • January 30, 2018 at 5:27 PM #27193

    bluebanana
    Participant

    Just moved from Cloudant to iCloud and have synced 3 devices (2 Macs and an iPhone). The Macs work fine automatically pushing and fetching. The iPhone will push just fine but only fetches if I manually press the Sync symbol. Have rebooted the iPhone but this makes no difference.

    Is there a way to automatically fetch new data on the iPhone?

    January 31, 2018 at 3:15 AM #27197

    Brendan
    Keymaster

    Hi,

    This should happen automatically without intervention. Can you check to see if Tap Forms has notifications enabled for it?

    What happens is that when a change is made and that change is uploaded to iCloud, iCloud then sends a push notification to your devices informing them that there’s something new for Tap Forms to fetch. Tap Forms will then issue a command to fetch from iCloud to get the new data.

    If the push notification doesn’t come in, then no data will be downloaded automatically. Tapping the sync button manually fetches the data from iCloud.

    January 31, 2018 at 12:21 PM #27206

    bluebanana
    Participant

    Hi Brendan,

    Tap Forms has notifications enabled on the iPhone.

    Interestingly, if I make an entry on the iPhone, it automatically pushes that change to the other devices and then will fetch everything correctly. However it will not fetch if I don’t make a change or hit the Sync button.

    January 31, 2018 at 10:17 PM #27208

    Brendan
    Keymaster

    Ok, so here’s the weird thing…

    When I run Tap Forms in development from Xcode, the notifications come in just fine and sync works great.

    But when I quit the app from Xcode and run it regularly on the device, the notifications don’t come in at all. So Tap Forms isn’t being told when there’s updates waiting for it in iCloud.

    I programmed Tap Forms to display an alert notice whenever a notification arrives, but that never happens, so that means the notification is either not being sent or not being received.

    I do register Tap Forms to receive notifications and that is working even when not running from within Xcode. But something else is amiss.

    I’m still investigating this issue.

    February 1, 2018 at 2:11 AM #27209

    Brendan
    Keymaster

    Can you check something for me?

    Go to Settings > General > Background App Refresh on your iOS devices.

    Is Tap Forms enabled for Background App Refresh?

    If not, can you try it on and see if that solves the problem for you?

    Thanks,

    Brendan

    February 1, 2018 at 4:33 AM #27211

    bluebanana
    Participant

    Yes Background App Refresh is switched on

    February 1, 2018 at 12:24 PM #27219

    Brendan
    Keymaster

    Ok, well hopefully the minor change I made will fix it in the next update for you.

    I experienced the same problem as you, but then I discovered that I had Background Refresh turned off on my iPhone. But I also enabled another setting to allow Background Notifications for Tap Forms. So I think those now need to work together to make it work. Perhaps this was a change made to iOS 11.2.x or something because I know it used to work for me, but then after seeing your post and checking again, it wasn’t working. But now it is.

    Thanks,

    Brendan

    February 1, 2018 at 1:54 PM #27229

    bluebanana
    Participant

    Thanks Brendan, I look forward to the update and will let you know if any issues arise.

Viewing 7 reply threads

You must be logged in to reply to this topic.