Google Api Keys for Windows Phone App - windows-phone-8

I want to integrate google custom search in windows phone app for image searching
I create the project on https://console.developers.google.com/
When i went to API & Authentication section of project description to create Api key,A popup is giving only four option server key,browser key,android key and ios key.There is no option to create api key for windows phone app.
Is it not possible to integrate google custom search in windows phone app.

Feel free to opt for iOS key, it does not matter. I did so previously while working with Google Tasks API and all is fine...

I created a browser key for my applications and also added URL wildcards for sites I would like the CSE to search such as
*.com; *.org; *.net etc.
Hope that helps!

Related

Google Maps Android API: Authorization failure. Ensure that the "Google Maps Android API v2" is enabled. Ensure that the following Android Key exists

I am getting this error:
E/Google Maps Android API: Authorization failure. Please see https://developers.google.com/maps/documentation/android-api/start for how to correctly set up the map.
E/Google Maps Android API: In the Google Developer Console (https://console.developers.google.com)
Ensure that the "Google Maps Android API v2" is enabled.
Ensure that the following Android Key exists:
API Key: [The key...]
Android Application (<cert_fingerprint>;<package_name>):
Instead of the map working correctly, this is what I see:
In my app/build.gradle, I have this:
implementation 'com.google.android.gms:play-services-base:16.1.0'
implementation 'com.google.android.gms:play-services-analytics:16.0.8'
implementation 'com.google.android.gms:play-services-awareness:16.0.0'
implementation 'com.google.android.gms:play-services-cast:16.2.0'
implementation 'com.google.android.gms:play-services-gcm:16.1.0'
implementation 'com.google.android.gms:play-services-location:16.0.0'
play-services-location is what I need for the Google Maps, correct? I was looking at the list at https://developers.google.com/android/guides/setup and I assume that Google Location and Activity Recognition - com.google.android.gms:play-services-location:16.0.0 is what I need for Google Maps. Is this correct?
UPDATE 1: I already have Maps SDK for Android enabled:
The error says: Ensure that the "Google Maps Android API v2" is enabled.. Is it referring to the Maps SDK for Android that I am showing in the screenshot in this UPDATE 1?
UPDATE 2: I have Maps SDK for Android enabled:
When I click the MANAGE button, I can go to the section to configure credentials that I showed in UPDATE 1.
UPDATE 3: I see the Map displayed correctly on all versions of Android on the Emulator. But on physical devices, the map never shows up. I see the Google logo and the red balloon, but now the map when I run the app on physical phones. Only on the Emulator everything works. Any ideas why?
UPDATE 4: See my solution at https://stackoverflow.com/a/56307654/4242086.
Hey I had the same problem today!,I solved it very easy for first you have to go https://console.developers.google.com and enable the android SDK maps and then create the api key, return in xamarin go to your manifest and add the google maps api key
https://learn.microsoft.com/it-it/xamarin/android/platform/maps-and-location/maps/obtaining-a-google-maps-api-key?tabs=windows
This is the documentation
(I typed this fast because am on mobile now sorry)
follow to below link for generate google api key:-
https://developers.google.com/maps/documentation/android-sdk/map-with-marker
Android Code Reference Link:-
https://www.zoftino.com/android-mapview-tutorial
I followed this tutorial and I was able to fix it: https://www.youtube.com/watch?v=sJBlQv6IptQ. The video makes references to this tutorial: http://ramsandroid4all.blogspot.com/2016/01/google-maps-android-example-in-android.html.
In my case, what I did was to create a new project at https://console.developers.google.com/. I used Android apps for Application restrictions:
For the Restrict usage to your Android apps section, I had to provide a Package name and a SHA-1 certificate fingerprint. The Package name was in my app/build.gradle, specifically here:
applicationId "[my package name]"
The SHA-1 certificate fingerprint I found it from Android Studio by running signingReport:
The result included something like this:
Alias: AndroidDebugKey
MD5: [The value]
SHA1: [The value]
SHA-256: [The value]
Valid until: Wednesday, May 5, 2049
----------
BUILD SUCCESSFUL in 0s
1 actionable task: 1 executed
16:31:44: Task execution finished 'signingReport'.
Now the map works correctly in my Android app:
UPDATE 1: To my surprise, the maps were working correctly only on the Android Studio Emulator but not on real Android physical devices. The solution was what I posted at https://stackoverflow.com/a/56307654/4242086.
I got the exact same symptoms when I moved the project to a new computer. My solution was to generate a new key based on the error message. The google_maps_api.xml file had an URL in a comment to generate key but that is a static thing, so after moving the project to a new computer I rewrote the URL to match the error message's version.
https://console.developers.google.com/flows/enableapi?apiid=maps_android_backend&keyType=CLIENT_SIDE_ANDROID&r=[put-the-thing-here]
Generated the key, put it in the XML file and it worked well.
In my case, I did everything right. but was still getting the error it turned out that changing the attribute "android:name" in the manifest file solved the issue.
Change
android:name="com.google.android.maps.API_KEY"
To
android:name="com.google.android.maps.v2.API_KEY"
Time changed the configurations steps. Here the new one.
Set up your project https://console.cloud.google.com/projectselector2/home/dashboard
Enable Google Maps API. Go to https://console.cloud.google.com/apis/library?filter=category:maps&_ga=2.192684329.2027491681.1618180744-3962552.1609436892 choose the API you want to enable
Go to API Credentials https://console.cloud.google.com/project/_/apiui/credential of your project
On the Credentials page, click Create credentials > API key.
The API key created dialog displays your newly created API key
Click Close.
In Android Studio, open your app-level build.gradle file and add the following code to the plugins element. id 'com.google.secrets_gradle_plugin' version '0.5'
Save the file and sync your project with Gradle
Open values\google_maps_api.xml and replace YOUR_API_KEY with the API got in the point 4.
Check in your AndroidManifest.xml the MAPS_API_KEY is replaced with your actual key
android:name="com.google.android.geo.API_KEY"
android:value="${MAPS_API_KEY}" />
Insert in your AndroidManifest.xml
<uses-permission android:name="android.permission.INTERNET" />
Go to the APIs & Services > Credentials page https://console.cloud.google.com/project/_/apiui/credential
Select the API key that you want to set a restriction on. The API key property page appears
Under Key restrictions --> Select Android apps.
Click + Add package name and fingerprint.
Enter your package name and SHA-1 certificate fingerprintClick Restrict key.
Select Maps SDK for Android from Select APIs dropdow
To finalize your changes, click Save.
For those who still haven't figured it out yet, again take a look at the logging below the error message. Pay close attention to your certifcate_fingerprint and package_name printed out in the logging. Compare these diligently with the ones specified in your Google Development Console.
I picked up an old hobby project again after almost an entire year of inactivity. I probably changed something somewhere that triggered a change of the certificate fingerprint, or visa versa.
Hope this helps!

Register for navigation intent in iOS swift

i have an esri based mapping app which is capable of routing and navigation.
i need to make the system know that my app is capable of routing and navigation when a third party app sends a navigation request and it should list my application among the installed maps app to the user
here is my scenario :
lets say my app is "App A" and a third party app is "App B".
App B has a button when tapped performs navigation,before opening navigation request it launches a selection window in which the system lists the maps app installed in the phone.so the user choose any one.
i need the system to add my app App A to the selection list.
i was able to use intent filters in android to achieve this easily.
what i tried in swift :
1)created a url scheme for comgooglemaps
2)system shows google maps in the app selection window for App B (even though phone doesnt have google maps installed) but opens my app and executes my task as needed
3)if google maps is installed,system opens google maps and my app doesnt receive the callback..
how do i achieve this in swift..
I need my app to be listed here among these Apple and Google maps and handle the request
please help ?
This is something which is not possible in iOS as of now
AFAIK and from the information gathered from other devs you cant let yourself list app among other apps
The only possible way is to create a URL scheme in my app and let the developer of the third party app to talk to my app using the scheme.

Windows Phone 8.1 App cant find Client Secret Key

I am trying to setup my WP8.1 app to use PushSharp Notifications.
I need to specify the CLIENT SECRET KEY. All MSDN documentation on this is outdated and i cant find it anywere.
I have created my app and can see all other info e.g. SID etc
thanks
Edit: Added dashboard image

Windows phone calendar integration

We are building a simple we app that contains basic tasking functionality (tasks, appointments, etc.).
We want to integrate it with Windows Phone 8 native Calendar, without writing any apps but by making a some sort of webservice that could be added as an account to Windows phone (e.g. Facebook, Microsoft Live, Gmail - are all accounts that are added, thus the tasks are synced).
Yet what have I came up with was this:
Interacting with calendars (Live Connect API)
This looks like a way to actively push and control the items on the Microsoft Live account, which would be fine but it requires that account to make it happen and an active module to do all the management.
We are looking forward to mimicking account behaviour and letting the phone do all the work :)
CalDAV was another keyword that popped up while searching but to my understanding windows phone doesn't support it.
Is it possible to forcefeed windows phone calendar objects to the phone without making a custom app?
Windows phone 8.1 supports cardav/caldav. You can put a custom dav server address selecting icloud account (it is a workaround) and editing the dav url. So you can set up a dav server in your app and synch calendars and contacts between your web app and the wp8 defaukt calendars and contacts app.

Create Internal Google Drive App without publishing on Chrome Web Store

Is it possible to create a Google Drive Web Application using the Google Drive API without publishing the application to the Chrome Web Store?
I have tried to implement it.
The authentication is now done, but now it complains about:
"403 : The Authenticated user has not installed the app with the client id {clientid} "
Thanks in advance!
Regards,
Pedro
Edit: This is now entirely possible. There is no chrome webstore limitation for apps merely wishing to use the Drive API.
Currently, no, you must create and install from the Chrome Web Store. Please note that you can publish your app to a private group of Trusted Testers which will prevent it from showing in the main listing (which would be bad during development).
We understand that this is a barrier to entry of using the API, and are looking at solutions.