iphone : embed a fully integrated customized (Google) map in a native app - iphone

Is it possible to send GPS coordinates, a name and hyperlink to a kind of Google map API so that it shows a map, some places with a name and whenever a user clicks on a place would go to a URL?
If so, is it possible to attach this map as a view so that a user can make use of the navigator bar of the native application at any time?
If it is possible, how could it be done?

Google:
http://www.invasivecode.com/2009/07/adding-maps-to-your-iphone-app-mapkit/
http://blog.objectgraph.com/index.php/2009/04/02/iphone-sdk-30-playing-with-map-kit/

Related

How to share an image from gallery with my flutter app?

Can anyone point me to a library or advice on how I can go about sharing an image from the gallery with my app using the share button? I want to have my app appear in the list of apps to share with. There are libraries such as [share] https://pub.dev/packages/share that allow you to share content from your app with other apps but it doesn't do what I am looking for.
TL:DR Coming from android,you can do this with a content provider. then using platfrom channels get it to flutter.
Allowing Other Apps to Start Your Activity
For example, if you build a social app that can share messages or photos with the user's friends, you should support the ACTION_SEND intent. Then, when users initiate a "share" action from another app, your app appears as an option in the chooser dialog (also known as the "disambiguation dialog")
To allow other apps to start your activity in this way, you need to add an element in your manifest file for the corresponding element.
When your app is installed on a device, the system identifies your intent filters and adds the information to an internal catalog of intents supported by all installed apps. When an app calls startActivity() or startActivityForResult(), with an implicit intent, the system finds which activity (or activities) can respond to the intent.
read more from docs
I guess you are searching for something like explained here:
https://medium.com/flutter-community/receive-sharing-files-to-flutter-app-from-another-app-7a84c0c0cd88
You could also try this flutter package: https://pub.dev/packages/receive_sharing_intent

Actions On Google link to Maps

I am using Actions On Google / Dialogflow to create a custom Google assistant app. I would like to link from my action to Google maps. So the user can be navigated to the suggested location.
An example conversation would be:
User: Where is my nearest post box?
Assistant: Your nearest post box is in London, two miles away, would you like to Navigate there?
User: Yes
---Google Maps opens and with directions running---
I can do this with a phone, because I can use a Button but this use case makes the most sense in Android Auto, which isn't classed as a smart display so doesn't support Buttons.
Is there any way I can show a notification or link out to Google Maps from the assistant?
A button is the right element to handle this type of behavior. On devices that do not support the screen surface capability, the button will not be shown. As such, there is no way to automatically activate a Maps event, including on Android Auto in particular.

Is there a way to generate a map directions image (for fb messenger bot usage)

I'm working on a Facebook Messenger bot for a client and I'm trying to give the users a map with directions to the client's location. I know FB has a button to get the user's location, but I'm not sure how to show the directions.
Any ideas how I might go about doing that because I don't believe Facebook provides something like that by default or as a template message (I could be wrong?).
There is no template for this afaik, but you could just create a picture of the map (and directions) server side. Sending pictures with the bot is no problem at all. It all depends on how exactly you want to show directions, but i guess there is no other option. You can include a list too, showing all the steps/turns to get to the destination.

codename one. How to share a link to your app.

What I want to achieve here is similar to what most apps do, specifically like Youtube. If I share a video on youtube the user gets a link to the video. When the link is clicked the user is automatically taken to the video in the Youtube app (if the user has the app). I want that sort of functionality. My app has different stores on it and information about the store. I want the user to be able to "Share" a store via Whatsapp, sms etc so then when the receiver clicks on the shared link they are automatically taken to that specific store's page INSIDE my app. And if they do not have the app the link must take them to my app's page in the app store to allow them to download it. How do I achieve this in codename one. I looked at the share functionality in the developer doc and the How To section and that only shows me how to share text or images. Not a link to my app.
You can use the ShareButton or it's underlying native share API call (notice this behaves differently on devices as this relies on native functionality).
To share one URL that works on all platforms you need server side code as we have no way of knowing if the guy who will click the link has the same device as you have.
How to make QR code for BOTH Android Market and App Store answers that although it discusses QR codes this is applicable to links as well e.g. http://onelink.to/ looks like it could solve that although I haven't tried their service.
The correct answer to this question was actually URL intercepting. http://www.codenameone.com/blog/intercepting-urls-on-ios-android.html You share a url from your app to an external application. When the user opens that lick in an external application the user is automatically taken to your app if your app intercepts it.

Do we must show link to Google Terms when using Mapkit?

I am using Mapkit for Google Maps. According to their terms at http://code.google.com/apis/maps/iphone/terms.html:
9.3 End User Terms and Privacy Policy. If you develop a Maps API Implementation for use by other users, you must:
(a) display to the users of your Maps API Implementation the link to Google's Terms of Use as presented through the Service or described in the Maps API Documentation;
Where can I show link to Google's ToU? I do not have an About screen in my app.
Is it must to show one? I see apps on iTunes who do not have an About screen and nobody shows the link on the main map screen.
This section means if you make your own API, like an add-on, or something that alters the MapKit, you need to link to their terms.
If you are just using the MapKit in your app, then no, there's no need to do anything extra.