Using latest Visual Studio Preview for Mac + Xamarin, am able to download and debug app on actual iPhone, UNTIL try to use Push Notifications.
Entitlements.plist, I check "Enable Push Notifications". Result:
"To enable Push Notifications, select a Development Team to use for provisioning:"
but the dropdown is empty.
Yet Xamarin knows about my account (if it didn't, I wouldn't be able to debug on an actual device).
Specifically, Options / iOS Bundle Signing / Signing Identity and Provisioning profile show the expected values - besides the "Automatic" choices, I can see my personal identity under "Signing Identity", and our "iOS Team Provisioning Profile: com...".
Question #1: when it says "select a Development Team to use for provisioning", is that something different than the values under iOS Bundle Signing?
Anyway, there is an option "Add an account". This takes me to Publishing / Apple Developer Accounts.
This has a list of Apple IDs; the list is empty.
Question #2: Why doesn't this show the same account id as "Signing Identity"?
So, I figure I have to add the ID manually. I click the "+".
Result: "You will be redirected to fastlane for authentication." .. "For more information, see our documentation".
I click on documentation link, follow instructions to make sure fastlane is installed, and on the path.
I click "OK".
Now I am staring at a terminal window.
It shows the expected path to fastlane, as part of a command line that also says "fastlane-credentials add".
Then it says "Username:"
Huh? Documentation link doesn't tell me anything about this terminal window, or what I am supposed to do.
(Or if it does, its buried somewhere that I haven't found yet.)
So I go ahead and try my Apple ID and password.
Says "...(my apple id)..." added to keychain.
That sounds promising (though I have no way of knowing if that was the Username and password I should have entered).
Unfortunately, it doesn't change anything in Xamarin plug-in for my app. (Rebooted Visual Studio, to be sure)
Question #3: What step(s) am I missing?
UPDATE: I can manually add to Entitlements "aps-environment: development", in order to download & debug app on phone, but I believe, based on earlier tests, that this still won't make a TestFlight that has working Push N.s. If try to use "aps-environment: production", the app fails to deploy to phone, deployment log says missing entitlement. iOS device log says "Failed to verify code signature .. The executable was signed with invalid entitlements"
So I believe that missing "Development Team for provisioning" still needs to be solved. Unless an old post at apple dev about changing that string to "production" is obsolete advice...