What's App sharing files - ios

I’m currently developing an iOS application (with Swift 3). In order to improve the user experience for the sharing, I would like to integrate What’s App.
Indeed, after some actions, the user can, if he wants, share a PDF file with UIActivityViewController.
To assure the best user experience possible, it would be amazing if the user could share directly to a phone number with What's App (without the creation of a conversation before as it's currently possible).
Do you have any ideas ?
I didn’t find anything yet, or is it something impossible ?
Thanks for the informations.
Regards

According to their own documentation, it doesn't seem to be possible. You can read up on the possibilities here:
https://www.whatsapp.com/faq/en/iphone/23559013
But you can't pass a phone number or any contact information with your URL request unfortunately.

Related

How can I share a url from a browser to my app in iOS?

TL/DR
How can I make an iOS app appear on share sheet to receive shared urls from any other app?
This is a super newbie post as I have never really touched swift to develop anything, but I couldnt find the answer to my question on google so i wanted to start here. Almost everything I found by googling around is UIActivityViewController which appears more to be about how to share content from my app to another app; while what I am trying to do is share urls from another app to my app.
I am try to build a simple app for ios (doesnt have to be old version compatible because it will be only used by me) that can be a receiver for shared urls from apps like safari, brave or youtube. All the app does is when user clicks on the share button, and then chooses the app, the app gets the relevant data that is being passed, and then posts it to a backend server.
I can accomplish this on my android app/devices with an intent filter action android.intent.action.SEND in the manifest, and then listening for it with Intent intent = getIntent() in my method.
Would someone be kind enough to point me in the right direction at what I should look into (google about). If you can also point me to some sample code examples on how to write an app that can be the receiver for shared data (like urls), that would be fantastic. I am not sure what to search for so that my app can show up on share sheet, and how to then react with the data.
Again, apologies for the super noob question, but I couldnt translate my idea to something relevant on google.
It can be achieved by an Action Extension. Search for it.
Here is one:
https://code.tutsplus.com/tutorials/ios-8-how-to-build-a-simple-action-extension--cms-22794
I think both Share extension and Action extension can do the job. It depends on your needs.
Check this table to make sure which one is more appropriate for your purpose.
You can refer to App Extension Programming Guide by Apple.

iOS - Retrieve the most visited websites on the device

I am developing a mobile app in objective-c for iOS.
Is there a way inside my app to programmatically retrieve the most visited websites from the browsers on the device?
I am interested in the urls specifically (e.g. "http://www.google.com"), in order to check a couple of things.
I've searched online but I haven't find anything that could satisfy these needs: does every browser save this kind of information in a private folder not accessible to anyone else and so it's not possible to get this data? Or am I missing something else?
Thanks anyway for your answers
The answer is: No, it's impossible. Apple doesn't give as an API to do that.
No, the developed applications are sandboxed. You can't access data out of one app from another. It's part of the security model.
Apple didn't published APIs for this privacy access level, It only published the following APIs for Safari extensions:
https://developer.apple.com/documentation/safariservices/safari_app_extensions
BTW, This question is asked alot before, you can check them:
how to programmatically access iphone browser history
How to access iPhone Safari History in an App?

Iphone App that can open other apps? How

There is an App out there that can 'intercept' pictures from snapchat. I'm not sure what low level witch craft they are using to accomplish this, but I want to learn more about how to do it and I don't know what to search!
Can someone please help me? This is the app I am referring to:
https://itunes.apple.com/us/app/snapbox-save-snapchat-snaps/id727651340?mt=8
I just read the app description you are referring, and I don't think intercept could be the right word to use. You will need to read more about Terms of Service from SnapShat and probably try to read if they provide any official api so you can use it.
What this app does, is actually consuming in someway the posts you are receiving and then saving it to your iPhone. That's not a hard task tough.
In this case, you're providing your snapchat login to this app and they're using it to pretend they're you to communicate with Snapchat.
No actual "intercepting" is happening, and the app likely works without Snapchat installed.
see: http://blog.snapchat.com/post/99998266095/third-party-applications-and-the-snapchat-api

feedback form in iOS app - allowed?

Would anyone one know if Apple has restrictions on providing a user feedback/bug report form within an app? I've searched around but haven't found anything very clear. Might seem a dumb question but I don't want to waste time on it if it is not allowed.
Also, assuming it is allowed - I guess I would do it through a server-based php script, rather than trying to wire it up through the user's email. I am not trying to capture the user's email or anything like that - just feedback/bug responses.
Cheers!
I believe companies like Uservoice and GetSatisfaction have mobile sdks for submitting feedback about apps.
Uservoice lets people submit anonymously, GetSatisfaction requires an account.
You can do this however you would like, lots of apps support emailing feedback but if you prefer to put in the work you could also do custom fields and have it simply send the response back through your own server.
Yes, it's allowed, and there's nothing to stop you doing it through email either - what is the difference between emailing a bug report using MFMailComposeViewController and emailing anything else?

How to share data between applications?

I have previously developed on Android but never on iPhone so my question could be stupid for iPhone developers.
Does it exist one or several ways to share data between applications on iPhone ?
In Android, data sharing between applications could be performed thanks to ContentProvider.
I found a post ( How to share custom data between iPhone applications? ) that talks about URL scheme but it seems only usable to share small piece of data.
Your conclusions based on the question you linked to are correct; there's no way for iPhone applications to communicate like on Android. As mentioned, you can send information from one app to another via the URL scheme, or you may share some Keychain information amongst your own apps if you sign them properly.
No - iPhone apps are sandboxed and cannot share information. The few exceptions are that you can access information from some of the Apple apps such as the photo library, calendar, email and contacts.
It depends on what you want to share, if it is contained in a document for example, then if another application supports the document format, then you can impliment a control in your application that will allow you to open it in another app. i think it is a UIDocumentController, or UIDocumentInteractionController.
Im not 100% on the class name but good reader uses this method as does iBook, to open PDF files from another application.

Resources