Hi all, I am facing an issue with setting an App Variable and an item to storage. In the screenshot you can see my setup for the flow. Whenever I tap on a “like” icon:
- If the post I am tapping on was already liked before (already exists in App Variable fav_post_ids), then I remove that post id from fav_post_ids and I also set that variable to storage.
- If the post I am tapping on was not already liked before (does not exist in App Variable fav_post_ids), then I add that post id to fav_post_ids and I also set that variable to storage.
- The icon’s value is set to this formula (so it changes if it’s liked/unliked):
IF(IS_IN_ARRAY(appVars.fav_posts_ids, repeated.current.id),{set: "fontAwesome", name: "heart"},{set: "fontAwesome", name: "heart-o"})
Now the issue: this whole liking system works perfectly fine on the AppGyver Preview app on my IPhone. However, we tried it on the same preview app but on my colleague’s phone and there it does not work. The icon does not change to a full heart if tapped on and I am not sure if the logic in the flow works at all. I also built the app and tested it on an Android emulator and also there it shows the same issue.
Any idea what could be the problem? I am going crazy