Update deviceToken on Existing Parse iOS Installation - parse-platform

I'm using Parse.com REST API to suscribe users for Push Notifications.
Sometimes DeviceToken changes, so I need to Update Parse Installation Object in order to update the DeviceToken.
According to the docs, it can be accomplished by doing a PUT Request:
https://parse.com/docs/rest#installations-updating
When executing the PUT request I have the following error result:
{"code":136,"error":"deviceToken may not be changed in this operation"}
Anyone else having the same Issue?

I've had the same issue. It looks like the problem is caused by another installation object having the same deviceToken. This happened to me when I switched between developer and production APNs certificates.
To fix this, go to Parse and search Core for your deviceToken and delete it.
There was another issue I encountered where Parse did not have the deviceToken I was searching for but still would not let me update. In that case I had to delete the entire installation and re-create a new one.

Related

Error "Unauthorized" when deleting record from smart device grid in Genexus

I have an android app created with Genexus. In this, I have a grid created with work with smart device. I can insert and update records but when I try to delete it, after I confirm I get the error "Unauthorized", no other explanations. It works in local and in our test server, but not in our production server. What could be causing this problem?
Surely something is missing in the deploy. Anyway, the best thing you can do is turn on the "log level = debug" property, under the "Logging" node of your main object, and see the error log to know specifically what is happening.

uploadState returns commitFileFailed

I'm trying to create an app in InTune using the Microsoft Graph REST API. I'm able to create the app, the contentversion, upload a file to Azure Storage, and call the commit action. After that, I'm waiting for uploadState 'commitFileSuccess', but it returns 'commitFileFailed'.
I saw a similar question, but that's assuming the file encryption is wrong:
commitFileFailed during mobileAppContentFile Commit
However, I have no clue where the error lies. Is there anybody with experience on this particular subject?
If you need more info, please let me know.
I found out what I was doing wrong. I used the PowerShell sample from Github as a base to write my own Ruby version, but I overlooked one thing.
https://github.com/microsoftgraph/powershell-intune-samples/tree/master/LOB_Application
I was uploading my apk file at once to the azureStorageUri, but I needed to upload it in chunks. After doing that the uploadState got updated to commitFileSuccess.
I will share my Ruby script once I've cleaned it up!

Error getting valid response from API. Check log file for error details

I cant seem to find the error log of authorize.net api.
I have Laravel application which uses "authorizenet/authorizenet" package and the code where I try to create a customer profile, I get following error:
"Error getting valid response from API. Check log file for error details"
Can anyone tell me whereto find these logs? and what it's name?
I tried in /var/logs folder but i cant seem to find it.
if someone else has this issue, here is the solution.
The authorize.net has changed their endpoints from https://api.authorize.net to https://api2.authorize.net which is one of the possible reasons that you might get this error.
So if you are hardcoding these endpoints in your code then update it to the new one or if you are using library constant for it, same as me:
\net\authorize\api\constants\ANetEnvironment::SANDBOX
\net\authorize\api\constants\ANetEnvironment::PRODUCTION
Then simply update your library by running:
composer update authorizenet/authorizenet
This is how I resolved it and it seems to be the best way so far because it will update their library to take everything up to date if they have changes something else and you started experiencing this issue.
I hope it helps

[BFTask isFaulted]: unrecognized selector sent to instance error

Updated to Parse SDK 1.7.1 with Bolts 1.1.4 and using the new and latest Facebook SDK. Every time I login the user I get the following error:
[BFTask isFaulted]: unrecognized selector sent to instance error.
I'm able to login the user, the user's info is store in parse, but not sure how to resolve this exception.
Anyone else having this problem?
Had this problem also.
I copied the Parse Bolts framework to the project directory. Referencing didn't do it. Same for Parse FacebookutilsV4.
I had solved this problem just a minute ago.
You need update the latest FacebookSDK to avoid this error.
You can just download the latest SDK from facebook website.
However if you just drag the parse and facebook framework together into the project, maybe a 'duplicate' error will be reported.
So I recommend you to use CocoaPods to manage your thirdparty framework.

Updating Installation DeviceToken Manually

How can I change a deviceToken to ("undefined") manually? When I try to do it, the deviceToken is always reset automatically. What happened was I accidentally added the deviceToken manually and now I cannot remove it. Any ideas?
Sounds strange, I haven't encountered that message when updating the device token either in code or on the data browser. Can you provide some more details?

Resources