How to view user badges Moodle - moodle

I want to know where are stored in the database the badges that gain an user. This question becomes from the incident that I have with one user who has earned 5 badges and in his profile only appears 3.

You can find the record of users earned badges in table "mdl_badge_issued".

Related

Fetching and Caching Users in IOS

I'm building an app that includes real-time group chat where each chat has a "details page" that includes information like group name, time, location (mapview) and a tableview that lists all the participants. The app works like Whatsapp where your "friends" come from your local contacts, so when you login for the first time, all your local friends are saved to Realm. What I'm having a hard time with is how to manage the details page where there is a mix of users stored in Realm and some that need to be fetched (Eg. if you're added to a group with some people you don't know). My current solution loads the Realm users first then loads the others when they are fetched, and this happens each time the view appears. It's very clunky and isn't a very user-friendly experience.
Looking at Whatsapp, when viewing the details page for a group I have not opened before, the page has a slight delay before opening and then displays all the users in unison. After the initial viewing of the details page, any subsequent viewing does not have any delay and all the users are displayed right away (local friends or otherwise).
I'm sure there is some sort of caching involved but I'm not sure what type and where to start. Any input would be great, thanks!

Upvote Downvote without login

Apps such as FML, TWI etc that display user supplied data have the ability to upvote and downvote submissions such as "I agree", "I disagree", "like", "dislike".
Anyone is able to vote if they are logged into the app. Anonymous users can vote and it stores their vote for that post/entry.
I have two buttons, one to upvote and one to downvote. When a user presses this button I need the result to be sent to a database (SQLite) thats hosted on my web server. Then I need the app, when a user opens the app, to pull the results from my database into my app and display the results.
How do these applications keep track of a user's votes within their app so that they can not keep giving upvotes again and again for the same item and can also visually show which way they voted if they go into that submission again?
How can I create this database and that the database is connected to my xcode project?
Any idea how I can implement this?
Thanks

How to get facebook app approved on App center?

I have submitted our facebook app for App center review, but it has been in pending status for 10 days, according to facebook App center guideline http://developers.facebook.com/docs/appcenter/guidelines/ "Once it has enough positive ratings and engagement, we will automatically review your app detail page and contact you if any changes are needed before it appears in a category."
Could anyone please tell me after a facebook app submitted for review, how to get enough positive ratings and engagement? What is exact rating/engagement amount? Where can I see the progress? Any facebook app center contact email?
Any help is appreciated.
Not to disappoint you, but we had our app being reviewed for 4 months and 11 days before our patience ran out. We had 50K users and 400 5* ratings out of 450 total ratings. It is insane how irresponsible FB is regarding reviewing content. We resubmitted the app for review and it took several days before the app was live in App Center.
Positive ratings is when users that installed your app rate it from 1 to 5 stars. Engagement is basically how many users installed your app in total and how many did not remove it within short period of time (the more the better). There is no exact amount, but for example 10K new installs in first week is better than 10K installs in first year, yet the number is the same. Same goes for the progress bar - Facebook has its internal metrics. Good luck with review.
We are unable to submit the application page / details for review in the App Center, because
"Your app does not have high enough ratings and user engagement to be reviewed for the App Center at this time".
I asked some questions about this:
1) How can we improve ratings without being listed in the Facebook App Center?
2) Our user engagement is about the same level as other apps in the same category, which are published in the App Center. What is a critical mass to be eligible for review? Which numbers are relevant?
The response I got from a Facebook developer:
1) We randomly ask users that uses your app to rate it.
2) There are no specific number. Our algorithm takes in as much data as possible and try to figure out if it is a high quality app. But in general if you get bad review you need more active users, And if you have good reviews you need less.
Update:
In our case, we had to disable the web and mobile web implementation in the App details section, because they had too few users (so only Android/iOS was still enabled - our main applications). After that we got approved.
The process for submission app is very tough. We need to strictly follow the guidelines. We need to sure what type of App we are developing and list of permissions are needed. Due to spamming by many Facebook App developers, Facebook app center required exact reason to get approve the required permission.
Here is an example of submission guidelines.
Tags
There may be scenarios where your app's users want to tag a friend. This tagging capability comes in two forms. One scenario is if the user takes an action with the friend (i.e. cooks a pizza with someone), and the other scenario is when the user simply wants to mention a friend (i.e. "Hey John Smith, let's make a pizza next time"). If you choose to choose to support both action and mention tags, clearly distinguish the two different use cases in your submission.
Action tagging appends "- with Friend" to the story.
Mention tagging allows your app's users to tag friends names within their user messages.
App Center Guidelines App Center Guidelines link
Submission process https://developers.facebook.com/docs/opengraph/submission-process
Please go through the submission guidelines as well. I hope this will help anyone.
I could upload two of my apps to App Center but now as though I don't have the correct gaming type option to be able to upload one

facebook app, submiting and using of same app in several pages

i have an app that i want to submit so i will be able to use in a client page/business profile. i need 5 total users and for some reason that people that open the app didn't count in for the total users.... is there something needed to be done in order for them to count.
second question is... if i will have an app for a specific page, is it possible (and how?) to have that same page do different thing with a variable in the query for each client tab we will have in the feature?
Update:
I don't want users - i want to use the app in the page tabs!
by "that people that open the app didnot count in for total users" i mean that the total user count is not going up

Multiple facebook accounts in single iPhone app

Is there a way I can allow user to login with multiple facebook accounts at the same time? Like what tweetie2 does for twitter accounts. So if I have two facebook accounts - a#a.com and b#b.com. I want the user to login with both of them on my iPhone app. Selecting tab for a#a.com will show statuses from a and selecting tab b#b.com would do the same for b.
Please let me know.
Thanks
AJ
Ya if you used keychain to store their credentials it'd be possible to have them enter their credentials for each account (you'd store them in keychain) and then do the logout/login as necessary. Not the best, but might be all you have open to you.
With the way the FBConnect code works, probably not more than one user at a time.
However, if you had two users A and B, when user B's tab is clicked on, you could log out user A and then log in user B. Then, when user A's tab is clicked on, user B would be logged out and user A logged back in.
Sam
You can use one in iPhone app and the other web based
Unfortunately the web based version does not support photo uploads. You have to use the app version to get this.
There is 'Friendly' for facebook on the iPad so it must be possible.