I downloaded the sample code on NSSharingService from https://developer.apple.com/library/mac/samplecode/SharingServices/Listings/Sharing_APLAppDelegate_m.html. The code is not working as i am not able to launch mail app from this. On debugging i found that [NSSharingService sharingServiceNamed:NSSharingServiceNameComposeEmail] is always returning nil. Can someone please guide me if there is any system set up required to launch this successfully.
I had the same issue with Facebook service (NSSharingServiceNamePostOnFacebook).
It is nil when "System Preferences -> Internet Accounts -> Facebook -> Share Menu" is turned off.
A sheet appeared first time and asked to add an account, I added one and just disabled that option and had to debug a code for about an hour.
As for your issue with Mail, it should be something similar, something with Mail accounts configuration. I tried myself to disable all Mail accounts, but it picked my Gmail one, so I was not able to reproduce it. Also I have no ability yet to test with a non-configured Mail.
Hope this will help you to go in the right direction.
Related
I created a slack app and add the following scopes to it:
But it still shows "Sending messages to this app has been turned off." in the chat window.
The app configuration page has been updated recently, so I can't try the method such as "go to App Home and set the checkbox for 'Allow users to send Slash commands and messages from the messages tab'".
Actually the settings I made for this app is the same with another app which I created previously and runs normally.
Does anybody have suggestions for this problem? It confuses me a lot, thanks in advance.
Add:
features:
app_home:
home_tab_enabled: false
messages_tab_enabled: true
messages_tab_read_only_enabled: false
to the app Manifest.
When I change the policy name firstpolicy to secondpolicy on the device, the patch API response is 200 ok and it removes apps of first policy to apps of second policy from the play store app, but it did not remove them from the device. It still shows apps of the first policy.
I am using an update mask.
Testing fully managed device
Any help appreciated.
The stack overflow thread at Android Device Policy sync does not work until done manually mentions a reboot will force apply a policy, which isn't ideal but it does at least ensure a policy is updated. I'm also testing a fully managed device.
https://developers.google.com/android/management/reference/rest/v1/enterprises.devices/issueCommand details the standard for sending a command to a device. You can test it against live data with the API explorer on that page, so navigate towards the bottom of the page where it says 'Request Parameters' -> 'Name', and put in your enterprise & device ids of the form 'enterprises/your-enterprise-id/devices/your-device-id'. Then go to 'Request Body' and use the '+' sign to add 'type' : 'REBOOT' as a parameter. Press the execute button, in which you will be prompted to choose an account for OAuth2.0. After this, you will see the results, and if successful (returns a 200 code), it will issue the reboot command, with the policy being updated after rebooting.
To reiterate, I know this isn't ideal, but it at least does do an update, so just providing that info.
Good luck and let me know if everything worked out.
It may take a while for the policy to sync and apply any changes, including removal of apps. You can force sync by opening the Android Device Policy app and touching the sync button. The other way is to issue a reboot command to the device to make sure that the new policy is applied. You can check the issueCommand method for more information.
On iOS8, in my app (which is working fine), if the user is not logged in with their Apple Id, and they attempt an in-app purchase, they get the following Apple alert:
Now, if the user presses "Cancel",in the code, we get an error code 2 with the SKPaymentTransaction. This has the enum code SKErrorPaymentCancelled
On iOS9, in the same situation, we now get error code 0,
Error Domain=SKErrorDomain Code=0 "Cannot connect to iTunes Store"
UserInfo={NSLocalizedDescription=Cannot connect to iTunes Store}
This has enum code SKErrorUnknown, which doesn't seem useful.
Anyone else run into this? The difficult here is in my app UI. If I get an error code, SKErrorPaymentCancelled, I don't present any info to the user as it is clear that the user has explicitly done a cancellation.
With SKErrorUnknown, I can't tell what has gone on, so I present an error alert to the user. Which, if they have explicitly cancelled, is just annoying. Thoughts?
May be :
Your app is enabled only for other location, test user was localized for other - and with this setup does not work. You should enabled the app for USA and created a test user localized in USA and it seems to work (no code change at all). And I think that proves that the code is ok, just the apple sandbox has some problems with non USA test users.
And don't login from settings. When this login form comes from your app, try it.
Okay I register my application to Itunes connect. I make sure that the correct application name and bundle is available.
Then I archieve my project and then I want to validate.
Then I got this message.
What is exactly wrong?
Is apple cannot figure out any application with the same bundle id and the same application name? Which one mismatch?
This is a common error. Just make sure that you set your app's state to waiting for upload
From Apple's documentation:
Troubleshooting: If Xcode doesn’t find an iTunes Connect application
record for your application, the “No suitable application records were
found” dialog appears. This dialog also appears when the application
record state is not at least Waiting for Upload.
When you register your app, it becomes 'Ready For Upload' first. You have to put it to 'Waiting For Upload' manually, by clicking the bottom-right button in iTunes Connect.
I'll add another answer because I just spent the last 30 minutes trying to figure out why I could not get validation to work...
If you have multiple iTunes Connect accounts, make sure you are logging in with the correct account that you created the app in iTunesConnect with.
It sounds like a no-brainer but the Organizer remembers the credentials that you last validated with for deployment. The last app I shipped was several months ago under my contractor credentials. My new app is under my own credentials but I was trying to authenticate with the saved contractor credentials. ugh.
I am working on Apple Push Notification and I want to clarify few things.
1. Is Certificate signing request name and email should be on that person name which have Developer account on Apple Developer Portal, both account on same name and email??? because i am having Problem and i have different.
2. I made Provisioning Profile of app successfully but when i edited it, show status "Error", I again edited but same Prob, then I delete it and made again with same App Id then again it generated status Error, some one help me how to tackle this situation???
To answer your first question, no they don't need to match up. It is advised that they do however.
I'm going to hope your second part is answered by now, but I would try creating a new app ID. Perhaps there is something funky going on, I've never had this issue and I've created a hand full of app IDs and provisioning profiles.