Google Beacon - AppIntent Issue - android

I am trying to use beacons in my project. Facing some issue with it.
I am getting NearBy notification only for WebURL. I tried using it for AppIntent and FreeFormAppIntent using beacon dashboard but I am not getting the nearby notification from a beacon.
I had given schema as "Something" and package as "com.google.android.gms.nearby.messages.samples.hellobeacons" via beacon dashboard.
Please let me know the above AppIntent given data is correct!!
Please let me know what went wrong??

You can find an example app intent used for Nearby Notifications here: https://developers.google.com/nearby/notifications/attachment_data_format
Also make sure that the app you want to launch can handle the intent you specify.

Related

Google Nearby notification API not showing new notifications

This is my first post here so please excuse my mistakes.
I am trying to work with Nearby notification. I have added the beacon via "beacon tools" and from my dashboard have added nearby notification. As you can see in the picture, the new notifications are appended at the bottom.
Nearby notification dashboard_img
So in this case, "Title #3" is the latest and that's the one I see in Nearby app when I am next to beacon.
Now, when I tried adding Nearby notifications to my beacons via Proximity API.
I have added the beacon to my project, and I am using
gapi.client.request
to add an attachment to my beacon, using the Proximity beacon API. The add attachment URI:
https://proximitybeacon.googleapis.com/v1beta1/beacons/(BeaconName)/attachments
I am formatting the attachment as such
{
"title": "Example",
"url": "https://www.example.com"
}
When I added 3 notifications via this (one at a time of course), they do show up in my google dashboard for that beacon. But the new ones are stacked on the top, instead of appending at bottom(as seen in the second pic)
Nearby notification dashboard_img
So as you could guess, only the first added notification is visible via Nearby, i.e "Title #1"
Am I missing something here? How do I make the new notifications appear using Proximity API?
PS: I am using Eddystone UID for this.
Update
It seems this was a bug and I had been trying to contact Google in several ways. Finally it reached them and they fixed it today :)
So latest notifications are now automatically displayed & targeting works well.
Kudos to Google engineers working on Nearby!

'Cannot read property 'listRegistrationsByTag' of undefined' from Microsoft.WindowsAzure.MobileServices.Push.RegisterAsync

This is a Xamarin.Forms app running on Android, based on the Azure getting started Mobile App example.
I'm trying to register a device's id for notification services. Originally I was getting unauthorized, so I relaxed authorization settings on the backend. Now I am getting this error and cannot find a reason why.
I checked and double checked that notification hub has the correct Firebase details that align with the app and cannot see what the problem is here, any help appreciated.
John,
If you set WEBSITE_PUSH_ENABLED=false in your appsettings, does the problem go away?
Can you check your Mobile App's app settings?
Specifically, I am looking for the existence of the app setting "MS_NotificationHubName". If that app setting doesn't exist, you need to add it, with the name of your notification hub.
There is a bug in the Azure App Service Push blade right now. A fix is being rolled out. In the interim, instead of using RegisterAsync(), use the method described in the book http://aka.ms/zumobook - chapter 5.

get results from google maps intent

in my android application I want the user will be able to choose some location and to get this location back to the application code.
something like startActivityForResults.
Does it's possible?
I know that it is possible with all the google service sdk and all of this,
but I want to use only the content intent, like described here:
https://developers.google.com/maps/documentation/android-api/intents#overview
and here (in the maps section):
http://developer.android.com/guide/components/intents-common.html
thanks a lot.
There is no requirement for an Android device to have an app that does what you want. There is no standard Intent structure for this, either.

Integrating Zxing Barcode Scanner With My Android App - Custom Action Name Issue

So I have successfully integrated Zxing into my application. However I want to make the entry Action name different so that users don't have to select between the barcode scanner app and my app for scanning if they have Zxing's apk installed. I figured I could do this by changingcom.google.zxing.client.android.SCAN to something else in my calling intent and my Android manifest.
It seems to work, except I am not getting a result from CaptureActivity. Instead, I am just getting results for the product in the scanner as if the app was not running via intent. I'm not sure if anyone has experienced this issue before. Any help is appreciated, and I can post more info if necessary.
I found the answer to this. I started thinking, and realized that the CaptureActivity would need to know that the action name was being called in order to determine the type of result. I didn't find it anywhere in the activity, so I did a project wide search of the original action name, and found Intents.java, which is a class of static intent action names to be used. I changed the scan action name in this file as well, and it works now.

Android Market: problems with details page

I am trying to open the Android Market in my application's details page.
I am using the following code:
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse("market://details?id=my.app.package"));
startActivity(intent);
However, it seems like this does not work in some devices.
Has anyone experienced a similar issue?
According to the documentation, it seems like the Market application filters out applications based on several criteria:
"filtering might also depend on the country and carrier, the presence or absence of a SIM card, and other factors." http://developer.android.com/guide/appendix/market-filters.html
Probably your application is being filtered out by one of those factors.
One of the best ways to confirm this is to login with your google account in the web market, go to the details page, then try to install the application.
You'll get a message similar to "Your operator is not supported"

Categories

Resources