iMessage extension can't access shared keychain data - keychain

I created an iMessage extension, and added the extension to the container APP's app group, also set the same keychain sharing ID. But my iMessage extension can't read data from keychain which the container App stored.
I spent all day to fix this issue, but still can't fix it...

Related

Keychain access control from the app with different names

I am using keychain in my macOS app to store jwt tokens (access and refresh)(kSecClassGenericPassword) and I have figure out that I can't manage existed data via the same app with another name.
I have build two equal application with different app names:
for example: App1.app and App2.app
Note: it's the same build, but with only different - app file name.
And if I created the keychain item using the first app (App1.app) I can't remove it from the second one.
If I double click on keychain item in Keychain Access default App I can see that there is only one app in Access Control tab (with the name App1.app).
Is there a way to give the access to keychain ignoring app names. Because user can change the name, or make a duplicate of the app.
Is there a solution of this behaviour?
Thank you!
So to solve it I set Keychain Sharing Capability and set (for macOS It's very necessary!) kSecAttrSynchronizable or/and kSecUseDataProtectionKeychain
More info here: https://medium.com/#bhojwaniravi/making-mac-oskeychain-behave-as-ios-keychain-60eedb37c173

Can sent/received chat history be accessed by an IOS 10 iMessage app extension?

This is a very basic iMessage app extension question.
I'm looking to see if it's possible for an iMessage app to access the chat history and parse previously sent/received text messages. I'm aware that they are stored in an SQL database on the device, but not sure if that data is accessible from an iMessage app extension.
Absolutely not :)
This is a question of privacy, and such thing will never (in my opinion) be allowed by Apple. They clearly said that they were worried about users privacy. iMessage extension can't even access the names of participants...
The only messages you can access are :
Those sent via your iMessage extension AND that were selected by
the user.
Those that are received by your app extension AND that were sent
via your app
Meaning that even messages sent via your app won't be accessible that easily.

Upload Previously Uploaded App To New App Store Account

I have an application for a client uploaded to my own apple store account. After several years, he want it to be uploaded to his own store account. Since the app has push notification feature in it, I can't just transfer the ownership to him. Can I upload the same Application Name as before (I will have to delete the old one, of course) without any complication? I don't want to delete the app now without knowing that I can reupload the app under new store account with the exact same application name
You can transfer apps between account with the new option inside itunesConnect.
In this link you can get more information.
https://developer.apple.com/library/ios/documentation/LanguagesUtilities/Conceptual/iTunesConnect_Guide/Chapters/TransferringAndDeletingApps.html
Also, if you delete the app this will happen (according apple documentation):
Important: If you delete your app, you can’t restore it. The SKU or app name can’t be reused in the same organization. If you’ve uploaded a build or set up this app for the iAd App Network, your bundle ID can’t be reused.
So the app name must be released and you can reused in another organization (according Apple documentation).

iCloud for all users of my app?

My first app is waiting approval in the store, wish me luck. My question:
I bundle in a collection of presets, logos and URLs, several dozen, to make adding new entries easy. I want to be able to rev this list of presets for all installed users without having to release a new app version to do it. Right now the presets are part of the bundle but it would be the work of minutes to make them into a KV store like NSUserDefaults. I could send this latest list to iCloud and all users of my app could sync to the latest list of presets.
But I've researched and I find nothing about doing this. Revving the app is a very large hammer for a collection of presets and I would like to be able to update the list regularly.
Is there a way to do this? Thanks for all the help I've gotten here.
iCloud is a store on your entitlement but its not a shared resource each user will have your app id in there iCould storage but you can not push data to each user over iCloud you wont have access to iCloud storage of your users. you can store data in you users documents folder in your app sandbox and you could use push notification to tell your app to download more content Im not too sure and what you can add the the main bundle after the is shipped

Uploading Error with name of App?

I already filled the all details for app through my iOS Developer account and submit the app for review to the app store but for some reasons i take my app back and delete all the details for particular app from my developer account but now when i again trying to upload the app for review it shows the Name already exist because of my app is submit with the same name again how can i over come this problem i want to upload my app with the same name again.
Thanks In Advance...
It seems you deleted your app, so you can't reuse the App Name.
From iTunes Connect Developer Guide:
If you have created an app in iTunes Connect that you no longer need
to see or manage, you can delete it from your iTunes Connect view.
IMPORTANT: Deleting your app will not allow you to reuse your SKU or
App Name in the same account again and you will not be able to
restore your app once deleted. If you have uploaded a binary or set
up this app for the iAd Network, your Bundle ID will not be reusable
either.