Appsee: How i can hide title of alert for appsee analytics - ios

I am using Appsee and using their video recording in my app.
I show an alert with confidential information. I know that I can hide the alert in appsee while using
+(void)markViewAsSensitive:(UIView*)view
and it's working.
However, this API doesn't remove the title and the message for the sensitive alert from the timeline.
See the attached
screenshot.

You should contact Appsee's support at support#appsee.com.
Meanwhile, you can use [Appsee pause]; before the alert and [Appsee resume]; after the alert. See docs.
In order to be aware of the alert, you can send a custom event with the details you want to be displayed in Appsee via +(void)addEvent:(NSString*)eventName. See docs.

Related

iOS - Make WhatsApp voice/video call programmatically from my application

I have a requirement to make WhatsApp calls from my application. When I click the mobile number in my app then it should redirect to WhatsApp and initiate voice/video calls without user intervention.
I've found a solution from the below link but it's opening application and landing on user chat window.
https://faq.whatsapp.com/en/iphone/23559013
There isn't an api for that. Whatsapp only allows interactions like sharing media such as video, audio and images as mentioned in the FAQ. I tried searching for official developer doc for one of my requirements but, was unsuccessful the FAQ seems to be the only official doc availabe:
If your application creates photos, videos, or audio notes and you'd like your users to share these media using WhatsApp, you can use the Document Interaction API to send your media to your WhatsApp contacts and groups.
The only thing you could do is open the contact page for the user. And then he has to call by manually clicking on call button. Maybe, give an info that suggests user to do so.
if #available(iOS 10.0, *) {
UIApplication.shared.open(NSURL(string: "whatsapp://send?phone=+91phonenumber")! as URL)
} else {
UIApplication.shared.openURL(NSURL(string: "whatsapp://send?phone=+91phonenumber")! as URL)
}

Send Message to user on Whatsapp from app without opening Whatsapp

Suppose I have few forms that needs to be filled by the user including contact number. After filling of all the forms, I want that contact number should receive a message including some greetings or some text or image clicked to use in the form. The message should be delivered as a simple SMS and also on WhatsApp. All this needs to be done without opening WhatsApp. Is it possible? If yes then how?
Thanks in advance.
I don't think this can be possible.
Yes you can set body of message using 'MFMessageComposeViewController' that involves user-interaction that means without user tapping simple message cant be sent otherwise spams could easily be written.
As far as send message via whatsApp, without opening whatsApp I guess you can only open application
NSURL *whatsAppURL = [NSURL URLWithString:#"Whatsapp://location?id=1"];
if ([[UIApplication sharedApplication] canOpenURL:whatsAppURL]) {
[[UIApplication sharedApplication] openURL:whatsAppURL]]];
}
Every application has it's Own 'Sandbox' a File System that can not be access outside boundary of that app.
And on iOS 9 you have to add "Whatsapp" under a proper key in your info.plist iOS 9 not opening Instagram app with URL SCHEME
I think you should use UIActivityViewController but you need to customise it for WhatsApp and there is open source here he prepared everything :)

application would like to Access the Microphone ios alert [duplicate]

Anyway to custom permission alert view like: Contacts, Photo Album, Push Notifications... before they get access, they will pop up an alert view like this:
How to custom Contacts, photo album, push notifications alert view text?
UPdate:
See the update image above, translate into english:
"To seek for your family and friends, Path needs to transfer your
contacts to our server"
And click OK to get contacts access without any other access permission alert view pops up.
Under iOS 6 and above, these can be setup to show specific messages. Edit your Info.plist by adding a few new entries. The keys all begin with "Privacy - " (the raw keys are NSxxxUsageDescription where xxx is Contacts, Locations, Reminders, PhotoLibrary, or Calendards). The value is the text you wish to display to the user.

Prefilled data in facebook web dialog

Is there any way i can prefill any string in FBWebDialog? Any workaround would do,I am aware facebook has deprecated the message parameter from their sdk.
My scenario is user clicks on a facebook contact
FBWebDialog opens and then the message gets prefilled with some text instead of a blank textfield.
any help would be appreciated
Thanks
Okay, from the comments it sounds like you want to post on the user's wall. Here is a method that is available in the FB SDK that pulls up a share dialog within your app and supports pre filled text
[FBDialogs presentOSIntegratedShareDialogModallyFrom:self initialText:#"Initial text" image:nil url:nil handler:nil];
Example with pre filled text:
Which type of dialog are you opening? (Sounds like the Send dialog, if you want to send a Facebook message.)
I do not think it is possible to even send a message directly to a user from iOS. When performing the following I get the error "This dialog is not available on this device"
[FBWebDialogs presentDialogModallyWithSession:nil dialog:#"send" parameters ...
iOS FB SDK WebDialog reference shows the following methods:
+ presentRequestsDialogModallyWithSession:message:title:parameters:handler:
+ presentRequestsDialogModallyWithSession:message:title:parameters:handler:friendCache:
Those seem to support pre-populating the message field. They only support apprequests though (not messages) and whether the message is even attached is a bit unknown (all I saw when testing was "User wants you to try App", not the actual string I set).
The javascript API (which could maybe be pulled up in a webview?) doesn't have a parameter to set the message probably because the Send dialog documentation says:
Facebook messages are a channel for person-to-person communication,
and not for apps to send messages, or encourage people to spam their
friends.
If you just want to post a message/share then you can use a share sheet which looks to support an initial message:
[FBNativeDialogs presentShareDialogModallyFrom:self initialText:#"My text to share" ...

YouTube Subscribe Button Callback Event

Does anyone know if the YouTube scubscribe button (the one that appears in widgets on various websites) has a callback function once the user has clicked subscribe? I have looked into making my own but due to the fact they load in iframes I dont think its possibe.
It currently (2013-01-08) does not: https://developers.google.com/youtube/iframe_api_reference
Yes they recently added a callback function. In their GUI for creating a subscribe button, you can check "My application listens for button events." and it'll include the callback in the widget code: https://developers.google.com/youtube/youtube_subscribe_button

Resources