How to get user default email address in ios swift [closed] - ios

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
Is there any way by which i can get current users email address of ios device.
i need all the default email address or email address of associated google account.

You can not get the email address configured in the Mail app since it's considered breach of privacy.
You can however use the MFMailComposeViewController which will prompt the user to send email using their email address.

Related

Contacts which are on your app and in your phone director are same [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
How would i search those contacts which are registered in your app and that exist in your contact List?
Fetch your Register user list.
Fetch your contact list.
http://www.appcoda.com/ios-programming-import-contact-address-book/
compare your contacts phone number or email id with your register
users list.

How to check if an Email is activated with imessage programmatically? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I try to test imessage for awhile by sending message from command line in Mac. If the receiver's apple account is activated with imessage, message sent successfully. Thus, could we check if receiver's email is activated with imessage ?
with osascript:
status and service type
osascript -e 'tell application "Messages" to return {service type, status} of (service of some buddy whose handle contains "buddy#mac.com")'
if you go in to imessage and type in the email, it will tell you if it is imessage or not.

BLE send passkey programmatically [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
When i connect my device to my peripheral, he asks me a passkey (a pop-up is shown on the device). I want to send this passkey programmatically during the connection.
I'm using CBCentralManager but I can't find a way to send it.
Any suggestions?
You can't do this. This is part of the security model. If your BLE peripheral specifies that encryption is required to access one of its characteristics then pairing is required. The passkey is collected by iOS, not your application, and your application does not have any access to the passkey or the pairing/bonding process

Delete or cancel app only with iTunes id [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Can i create app that the user can't delete without iTunes id or password?
Can i create app that the user can't cancel to background with home button without iTunes id or password?
Thanks in advance
No and No. The philosophy is that the user should always feel in control of their apps. You can only prevent app deletion on a device-by-device basis (using the device settings).

How to set a password for application in iOS [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I am developing an application in iOS where I want to provide a password option..where user can enter a password and set it,and later when he opens the app,it should first ask for password to enter,
So can we implement this?
Any ideas ,suggestions are welcomed.....
Regards
Ranjit
Maybe save the password in the NSUserDefaults and request that password if one is set...
http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSUserDefaults_Class/Reference/Reference.html
Save the password to the keychain. Don't store it anywhere else, if you care about security. You could use SFHFKeychainUtils to do this easily.

Resources