Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 4 years ago.
Improve this question
I've been trying to add basic app.net implementation into my ios app and having loads of trouble for reasons I cannot figure out. All I really want to do is something simple like this:
http://hashpan.com/dev/help/appnet_client_side.htm
I have looked at the documentation and the various objective-c wrappers and really can't figure this out. I find zero sample code out there as well which doesn't help. Specifically I keep getting this when trying to setup an authorization screen:
http://cl.ly/0o032Z1H1E2y
And yes I have paid the dev fee so I have the rights to their api. If anyone would be willing to spend a few minutes to help me that would be much appreciated as I'm not sure where to go for help with this. Thanks,
rc
It looks like you are trying to use one of the web flows.
Since it is an ios app, you will want to use either the password flow or the app.net Passport flow. The latter is probably what you really want to be doing. This allows users to authorize your app from the app.net Passport easily.
Password flow: http://developers.app.net/docs/authentication/flows/password/
app.net Passport auth: https://github.com/appdotnet/ADNLogin-SDK-iOS
Also, since you are on ios, you will be well served using ADNKit by #joeldev: https://github.com/joeldev/ADNKit
If you do indeed want to use the web flow, this error message probably implies that you have not setup the callback URL appropriately in the dev console for that app or that you are not escaping the characters in the callback URL properly inside of the authorization URL.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
Is there any solution to protect google analytics from receiving fake information from Spammers ? The problem is anybody can send information by knowing tracking id.
I found the following solution, filter domain. But that's for web and how to implement for mobile app ?
https://blog.kissmetrics.com/protect-analytics-from-hacking/
Thanks
Visible Tracking ID
On a website you can right click, Show source but you can't on a mobile application. Therefore your trying ID can't be find from your clients application. Nonetheless, if your code is pushed to a public repository (Github for example) robots may find it.
Random spammers
Even if your trackingID is kept secret you'll have some bot spamming your account randomly (they try every possible tracking ID). Google added a tool to prevent this: go to Admin > View > View settings > turn on Exclude all hits from known bots and spiders. Then Google will automatically filter hits from the known fake domains.
Hostname security hack
Even with Google's automatic filter you may still see some spam. This can be fixed with what they explain in the link you provided.
In your article they create a custom dimension and use it to filter real data from spam data. You can also use this with your mobile application, the thing is, it does not need to be a host name it just need to be a string only known by you, its sort of a new secret added to your tracking ID (which should already be secret).
This works because bots can handle the try of every trackingID but they can't try every custom dimension with every possible value, it's too much work for them.
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 5 years ago.
Improve this question
My plan is to make an app for iOS (and android when I've figured it out on iOS) in flash. I need to access data from an external mySQL-database that I will be putting on a webserver. I'm wondering what the correct way to go about this would be.
I've looked a little into AIR, Flex and JSON, but I need someone who knows what they're doing to put me on the right track. I don't need a super in-depth guide, just a hint in the general direction, I can do a lot of research myself, but I'm quite inexperienced in the whole accessing-external-databases-from- flash thing.
Thanks a bunch in advance!
-Flash Newbie
To access an external database you wouldn't use Flash directly, you would need some sort of middle layer (like PHP or Node or Ruby, etc) to get results out of the database and return them to Flash in some format it can understand (like XML or JSON.) This is commonly referred to as an API - it's kind of like a web site but it returns data in code instead of user readable html.
So the flow would look something like this:
Your iOS app would make a request for a url - something like this: http://myserver.com/users
You would have a server-side app (let's say PHP) deployed to a server handle that request.
PHP would query some database (like mySQL) and get the results. Those results would be formatted as JSON or XML and returned.
Your iOS app would get the results, and then you could do whatever you needed with it.
This is super-rudimentary explanation but there is a lot going on with what you're trying to do. My recommendation would be to get really familiar with calling API's on the web (you could use something like https://developer.forecast.io/ to get familiar with working with JSON and web requests) and then when you're feeling comfortable with all of that you could looking into working on the server portion. I don't know what your comfort level is with all of this but a lot of people focus on just one or two of these area's and not the entire stack. It can get overwhelming rather quickly. I haven't even talked about security, authentication, performance, etc... :D
Hope this helps!
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
I need to use upsert() for an update. The request url is shown below.
https://api.mongolab.com/api/1/databases/db/collections/col+"?q={}&u=true&apiKey=key
It results 500 Internal Server Error. Without u=true the url works fine.
Thank you in advance
======== UPDATE =========
Current Solution. I send two requests. If the update request does not find any specified document, return 0, it will send another request for insert. This approach is quite expensive. Looking forward for better solution.
Cheers
Since you got an Internal Server Error you should probably contact MongoLab Support at support#mongolab.com so we can identify your specific account and go through the logs to identify the problem.
For your reference, here are our docs on updates and upserts via the RESTful Data API: http://docs.mongolab.com/restapi/#update-documents
Some initial thoughts, not having all the information: You don't specify the HTTP method you're using. For upserts (or any update) you'll need to use PUT. Also, updates assume there's a replacement doc or update modifiers in the body of the request.
Cheers!
Jared
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
We all know that Devise is de facto standard for implementing authentication on rails based apps.
By default it uses email as ID but also allows you to use usernames instead. It also has "Confirmable" module which lets you confirm the email address by sending an email and clicking through the link to verify your email.
I was looking for something similar for phone numbers--basically accepting phone numbers as primary ID instead of emails, and then confirm the phone number by sending an auth code as SMS message to the user's number via something like Twilio, and then let the user confirm it by entering the code (or even let the user click through a generated link to verify just like they do with emails)
The reason I was expecting there to be a popular devise module for this functionality was because it seems as if most mobile social apps accept phone numbers and confirm the number nowadays. There's gotta be someone who thought this was a problem and open-sourced a module for this. However I couldn't find any popular ones. Actually to be precise, here are the only three relevant links I've found on this:
https://github.com/giano/devise_sms_activable
https://github.com/baranov-sv/devise_sms_confirmable
Rails register User using phone number and confirmation
None of them leads to a working solution (I've tried devise_sms_activable but it doesn't work for rails 4, plus I'm wary of the low number of stars) So I wanted to ask if there's any viable solution to this. Am I missing something? Has this topic been brought up among the Devise developer community? I'm curious about the solution but if there is none, I would at least appreciate any answer on why this is not readily available.
[UPDATE]
I think the question might have been a bit misleading. While I can just build it myself, I don't like to re-invent the wheel.
Basically my intention with this question was:
If there's any package that does this (like all the modules such as confirmable, token_authentcatable, etc. Maybe not even a Devise module and it could be entirely a different thing)
Or, if there is no such pre-built solution, why there isn't one. I just can't comprehend why there is no such solution I can find when everyone seems to be doing this.
I will gladly accept when I get an answer to either #1 or #2. Thanks!
i've looked into that before... but the project requirements changed... so all of the following are relative links found on the devise wiki
this how to allows you to sign in and authenticate with different fields other than the email address
A Simple Token Authentication Service for Mobile Devices Using Rails 3 and Devise.
you can use the previous tuts in conjunction with some thing like Twilio to send the created custom auth token and authenticate user with phone number other than email.
[UPDATE]
since you mentioned an already working solution, I think this is what you are looking for. Active Model OTP and this blog post it's new and i didn't have the chance to test drive it :D
I also found Two factor authentication Devise extension
[UPDATE Aug/2017]
Based on a project that I was recently working on, I found that Tinfoil/devise-two-factor provides a really good/extensible integration with devise (and is highly customizable)... using the internal ROTP gem, you can provide different length codes based on different authentication methods (APP/SMS) and different window/drift allowed per method without having to write the whole thing from the ground up. (highly recommended if you want full power over complex workflow)
I'm the OP, and since I asked this question, I've come across a gem called active_model_opt https://github.com/heapsource/active_model_otp
This gem is not exactly a devise plugin but it does exactly what i was looking for. Basically by adding it to your user model it generates one time passwords that are valid for a certain amount of time. It even has a built-in function to "authenticate" using the one time password.
Anyway I hope anyone who stumbled upon this question may find this answer useful.
Probably not exactly what the OP was looking for, but for Rails developers in China, now there's a gem called china_sms which automatically integrates various Chinese SMS sending services into your Rails app. I'll just add it here in case anybody shall find it useful.
https://github.com/saberma/china_sms
https://ruby-china.org/topics/12407
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 4 years ago.
Improve this question
i want integreate in my iOS app, a CrashData Report that send me the log of the crash automatically, and the feedback form to let the user to contact me for request, issue or suggestion, i have found a lot of service online, but the most are payment service, like:
http://www.crittercism.com/
http://www.bugsense.com/
http://www.hockeyapp.net/
or for feedback:
http://www.uservoice.com/
i have also see that there is a opensource for crashdata:
http://quincykit.net/
so maybe the best solution is create my server to host quinckykit, and receive feedback user direct on the server, so my question is, how implement this, what type of server or webhosting i have take?...and what hosting did you advise me, or some tutorial, i never did it...
You should check Instabug (http://instabug.com) it's very specifically serving feedback reporting with a smooth experience.
It shows a screenshot for the user to draw on other than the text field to enter the feedback in.
It also captures all the device details needed.
You can customize it as you want.
PS. I'm working at Instabug. So let me know if you need any help. It's free btw!
QuincyKit contains all you need to receive crash reports and work with them. The hosted solution HockeyApp uses the same open source SDK and provides much more advanced features. If you are not familiar with server hosting php and MySQL, I would recommend to use a hosted solution instead of the open source server component. Also crash symbolication has to be done on your Mac, which HockeyApp e.g. does all automatically for you.
The QuincyKit GitHub repository contains all information you need.
User Feedback is not part of QuincyKit or HockeyApp. I think Crittercism provides some user feedback features independent from crash reporting. I don't know if UserVoice provides anything you can integrate into your iOS app.