Beacon Hybrid Application MobileFirst 7.1 - ibm-mobilefirst

we are trying to crate a Mobile First Hybrid applicaiton which can detect beacons on basis of UUID.
Mobile First Native Application for Beacons already available in IBM sample applicaitons.
https://developer.ibm.com/mobilefirstplatform/documentation/getting-started-7-1/foundation/advanced-topics/working-with-beacons/beacons-in-android/
To achieve same in hybrid application we created one HTTP adapter which returned all registered beacons Information on Mobile First server
and we used android beacon library
https://altbeacon.github.io/android-beacon-library/samples.html
and configured in my Hybrid android project, Now My android application is able to detect beacons in region in specified Beacon region.
Now my problem is
Is above mentioned approch is correct or some one can tell me better approch?
"didEnterRegion" event occure again and again for same beacon, how can i manage with Enter and Exit Region of Beacon?
Is there any working sample application for Beacons Mobile first Hybrid application?

It's impressive that you managed to get it to work in Hybrid applications.
That said, there is no official support for Beacons in Hybrid applications. As such there is also no sample application available.

Related

How should Google Analytics 4 be used with react native application?

We have a website, and a react-native based iOS and Android apps that present that website in a mobile app (with push notifications). If we have the website send the messages through a single G- measurement id, in GA dashboard it shows web as the platform 100% of the time. Is the best way to manage the platform value to create multiple streams? We have different apps for different audiences, so it would be hard to maintain that many new multiple streams for each app. Is there a way to populate Platform in a different way?
I see when we are in the app, the browser value is like Safari (in-app) or Android Webview. But that doesn't tell us app or if the website is in a social media app. I am thinking the best way to proceed is to make a custom dimension for knowing if the user is inside the app. Is that the best way forward for us?

How to Launch/Open any other external app from hybrid app? [duplicate]

I have a requirement to open the native version of the hybrid app (.ipa/.apk/.appx) when the hybrid app is requested in a device browser.
I am able to detect the environment using WL.Client.getEnvironment(); method, if it is found to be Android/iPad, I want to launch the respective .apk/.ipa file in the device. Any help is appreciated.
Re-reading this question and the comments several times... I still do not understand the actual scenario... it'd be best to rephrase it.
Scenario: How to open an app from the web browser:
If you have added the following environments to your Worklight application:
Mobile Web
Android
iPhone
And when visiting the Mobile Web version of your app, you want to display a message like "For the full experience, open the full application by clicking here".
Then:
It is implied that the user already has the application installed.
If it is not installed, you need to take care of that somehow
The way to handle this scenario is to use URI schemas:
For Android: How to implement my very own URI scheme on Android
This means that after adding the custom URI schema to AndroidManifest.xml, you could then detect the device OS the Mobile Web app is currently running on and display a custom link: myapp://<the URI schema you've defined>. Tapping it will open the app installed on the device.
For iOS, in a similar fashion: https://coderwall.com/p/mtjaeq
Also see: http://wiki.akosma.com/IPhone_URL_Schemes
Alternate solution: If you are not sure if the app will be installed or not, then instead of using URI schemas you can always point to either Google Play or Apple App Store, to the app page; the user will then have either a "Open" or "Install" link.
Scenario: How to open an app from my own app
If you have a Worklight Hybrid application (Mobile Web is not a Hybrid application), and you want to open another application from within it, you can:
Use the same approach of URI schemas, or
Use Cordova plug-ins
I have created this Worklight 6.1.0 project to demonstrate:
Android - How to open, for example, the Android Settings app from your Worklight Hybrid app
iOS - How to check if Waze is installed and open it, and if it is not installed then to open Apple Maps instead.
See instructions.txt in the apps\test folder.
Are you asking that if the user via their device browser hits the webapp version of your app on the internet, the website will ask the user to fire up the native app on their device? kind of like what ebay does?
if that is what you want check out these pages
android:Launch custom android application from android browser
IOS:
iPhone - Open Application from Web Page

Roku with Instant TV Channel and BrightScript Differences

I am a beginner for developing an app for Roku platform. I had few queries on instant tv channel and the BrightScript.
I tried installing the BrightScript plugin in eclipse to start with the Roku app development. I have CDN which provides set of web services which i can consume to show the videos or the content.
I have also created the account in Instant tv channel which takes inputs as URLs and easily I can create the channel and upload to the Roku app dev store.
Here my question is that
whether I should go ahead with BrightScript programming language for app development ?
Or Instant tv channel setup is better for creating my channels ?
Why people choose BrightScript instead of Instant TV Channel ? would like to know the Pros and cons of these two ways..
I might be wrong in understanding the usage of these. How can I develop the app for Roku Platform?
I have referred : http://forums.roku.com/ forums , http://www.instanttvchannel.com/roku/quick to understand the differences between these two techniques of developing the Roku app. I have also followed https://www.youtube.com/watch?v=eQzk_Iq9dYI&feature=youtu.be to understand the app development and created the app.
Also Eclipse+ BrightScript plugin integration i did by following the http://sdkdocs.roku.com/display/sdkdoc/Eclipse+Plugin+Guide link
I've never used instant tv, but basically Brightscript means that you have full control (relatively) over your app.

iBeacon mobile web application development

Are there any custom APIs for iBeacon access from mobile web applications? Probably it could be a mobile safari extension.
Thanks in advance.
Unfortunately, no.
You could write a native iOS app that looks for iBeacons in the background and launches a specific web app URL on mobile Safari. You could even pass ranged beacon info in query parameters.
But you would still need a native app installed on the phone to do this. And once the Safari page is launched, getting further updates is impossible, unless you use a complex web service proxy to the native app.

Android, Iphone, Windows and Blackberry API search apps

Is it possible to search apps via API on:
1. Android Market
2. App Store
3. Windows Phone App Store
4. Blackberry App World
5. Facebook App Store
and if so, can you provide specific links to that sections (not only to the develops pages)?
Thanks
you can use google api, or some simple stuff
for example you want to search games in android market place
get the result of this
games site: https://play.google.com/
in google.com
For Apple App store---
https://itunes.apple.com/search?term=+<appname>+&entity=software
There are no public apis are available for Android, Windows, Blackberry.
Paid API For Android Apps--
42Matters
For Windows, Backberry, Facebook--
Do web scrapping by using CSQuery(or) html agility pack..