-
AuthorPosts
-
June 12, 2022 at 8:04 pm #11313Sean CallahanParticipant
I want to serve specific messages to iOS users — hey download my iOS app… and specific messages to Android users…download my Google Play app. How would you recommend setting this up with conditions?
June 13, 2022 at 1:01 am #11315Aakash ChakravarthyKeymasterHi Sean,
You can create 2 announcements for iOS and Android.
For the iOS announcement, set the visitor condition rule like “Operating system” is “iPhone” or “iPad” like in screenshot below.
Similarly, for the android announcement set value as “android”
Thanks,
AakashJune 14, 2022 at 2:08 am #11316Sean CallahanParticipantHi Aakash,
Thank you! One last question. I’ve wrapped my website, which includes your plugin in an iOS wrapper. The iOS app is live on the app store. Is there a way to not show an Announcer banner inside my specific iOS app?
June 14, 2022 at 2:10 am #11317Sean CallahanParticipantOh, one more question, is there a setting to make the banner show only once per user until the message is changed?
June 14, 2022 at 5:35 am #11319Sean CallahanParticipantAs an FYI, I created one banner for operating system “is” iPhone and another banner for operating system “is not” iPhone and both banners showed up. Not sure why.
June 14, 2022 at 5:52 am #11320Sean CallahanParticipantAlso, after I press update, how long should it take for changes/setting to take effect? Seems like there may be a long delay? (i.e., 15 to 20 minutes)
June 14, 2022 at 11:56 pm #11321Aakash ChakravarthyKeymasterHi Sean,
I tried the same in my local setup.
When the operating system is set to “iPhone” then the announcement displays only on iPhone devices.
Please see the images below.As mentioned in the documentation page, the type of browser, OS is deducted from the user agent string.
You can learn more about user agent string here – https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent
Regarding identifying web view or browser, you need to know the UA string. On the below page, you can find how UA string varies for apps. Similarly you must identify the UA and put that keyword in the visitor condition.
https://gist.github.com/taylorhughes/dae564f63b3d702429a5f37bd22b97b8
Regarding the time taken for the update, the changes are reflected immediately. Make sure you are not looking at the cached page.
Thanks,
AakashJune 15, 2022 at 12:19 am #11322Sean CallahanParticipantThank you for all the info. I’ll give it a go. Have a good week!
-
AuthorPosts
- You must be logged in to reply to this topic.