+91 6353967672

The Quick Start Guide to Facebook App Install Ads to Increase Mobile App Downloads

Are you looking for a way to increase downloads of your mobile application? Does your mobile application is not performing well? If you facing such challenges with your mobile apps, this Facebook app install ads guide is for you.

The popularity and love for mobile apps have grown to such an extent that now there’s too many of them. Both the Play Store and the iOS App Store are crowded and it is getting harder for developers to stand apart from the crowd. Facebook App Install Ads come as the next best solution. The unending opportunities in the app industry have made social platforms like Facebook, Google and Twitter to step forward and have a share of the pie. However, earning the dollars requires gaining the trust of the developers. Facebook, especially, has the advantage of personalized discovery. Further, it had the attention of the developers and deep ad targeting. Facebook app install ads was launched in August 2012 and by the October that year, it started showing up. Over the years, Facebook app install ads have grown by as much as 346%. The global click through rates for Facebook app install ads have been a surprising 0.6%.

The best thing about Facebook has been its 900+ million userbase where App Installs are simple ads that takes the user to the Google Play Store or App Store app page. Similar to sponsored stories, these app install ads are shown in the user’s timeline, offering a direct invite for installation. Added to the app advertisement, these ads also contain helpful social info like the rating of the app and the number of friends who are using/installed the app. Highly targeted, these ads increase the chances of businesses connecting with potential customers. For example, if Facebook users who are photographers will receive app install ads like MakeMyTrip, Goibibo, etc.

While the success rate with Facebook app install ads is huge, businesses must understand what they actually need from a campaign. Compared to app stores, Facebook offers a better reach, lower per install costs and maximized installs. Most advertisers and developers also do effective App Store Optimization for mobile apps to boost downloads and that’s not a bad technique either. Here’s how businesses can look to set up their app installs ads in Facebook:

#1 Setting up a Facebook account

It goes unsaid that the first thing to have before using Facebook app installs is a Facebook account. Setting up a Facebook account for your business is very easy and Facebook just ask for few necessary details to help you out. Further, creating a business account in Facebook is completely free. Most businesses would already have this in place.

The next thing to do is navigating to the Ad Manager and fills up the necessary information for the ad account.

ads manager

#2 Creating a Facebook App

To be able to start an advertisement, businesses will first need to create and register the required app to Facebook App. Facebook wants you to add SDK to gauge the performance of the app. You can go to the Developer Account and add the APP.

Once you click on Add the app, it will ask you to enter your app name and contact email ID.

Create a new app ID

After creating new app ID you need to add app URL. It will be your app’s Playstore or Appstore link.

Next step after basic setting is to connect Ad account to your Facebook application. To Add Facebook Ad account ID go to Setting > Advanced. You can find Ad account ID from Facebook Ads Manager.

Next step is to add SDK. It is different for Android and iOS apps. Let’s look at an example of creating APP and installing SDK for an iOS app. It is necessary that the developer itself needs to complete the iOS SDK process. If you are not developer yourself then I recommend you to send below details to your developer for further process.

  • Download and install SDK to your XCode project
  • Configure the info.plist file
  • Add the Bundle Identifier of the application (Developer already knows this)
  • Add all the required code to your project and make it live

fb codeYou can also provide Facebook developers account access or complete screenshot of guide to developer (It will be good idea).

At the bottom of the page you require to enter bundle identifier of the iOS application. This will be the name which you used in Xcode that might be in this format – com.iphoneadd.iprotectalbum

app bundle identifierProcess of installing SDK is different for both Android and iOS apps. Developers will subsequently have to provide Facebook with the package name of the app, the hash key (self generated) and the activity name for Android Apps. Given these, the steps involved in setting up SDK are thoroughly guided.

After completing the process of SDK, add the app events to your application. It is necessary to add app event. If you are not adding app event to your application before starting campaign there will be a error message “This app isn’t linked to your ad account” while setting up campaign.

When you Click “Set Up Now” button, a setup guide will be open. Then choose your application to go next step of choosing event.

After selecting application choose the app category from the list.

Once you will select category of your app you will see app event list. Choose the events you need to track then click on continue.

Choose the important events you want to track and click on continue to get installation instruction via email.

You can verify your app after installing SDK and app events. Use this tool to verify App Ads Setup.

#3 Creating Facebook App Install Ads

After installing SDK and app events, you are all set to create the ad. You will need to navigate to the My Apps section and fill all necessary information. If any information is missing in it then Facebook will let you know.

I have tried and tested Facebook App Install ads for one of our Android App EyeSight Challenge – Puzzle game. Here I am going to explain how I created my first app install ad. In next step create your ads from ads manager account. Choose your objective as App Installs and enter the campaign name.

In the next step you need to create new ad set. Enter ad set name and right after it choose the application platform from the drop down. Then enter your application name or exact URL of Playstore/Appstore.

 

You will now move ahead to create your Ad Set where you required to add the demographics, users, budget and the interest in Ad settings. I recommend you to add meaningful name for the Ad Set because it gives you better idea to analyze Ad Sets in the future. If you are creating multiple Ad Sets with different targeting then set name as “App Name + Region + Gender + Age Group”.

Here you need to define:

  • Platform – Select mobile device you want to target ads.
  • Operating System – Choose the min and max versions of OS to target ads.
  • Devices – Choose devices (Smartphones, Tablets)
  • Locations – Enter one or country, regions, or cities to target ads
  • Age – Select min – max age where you find your ads would be most relevant
  • Gender – You can also target specific gender audience

platform section

To set up the target audience, you will have to define the:

  • Targeted interests (photography, travel,, etc)
  • Connections
  • Behavior

Now, while selecting the targeting audience, try to be specific. If you are trying to optimize a travel app, go for audience group who are in related groups and users who have constant check-ins. Don’t define too large an audience group as you will only speak with the general public. Once you define your interest then you can see the estimated daily reach audience number at the right side of the window.

You can also exclude those audience who already installed your app by selecting advanced combinations > exclude people who are connected to (Enter App Id) in connection section.

budget section

Now for the budget section, you will need to define the:

  • Budgets
  • Optimize for Ad Delivery (App Installs & Link Clicks)
  • Ad scheduling

Next is the ad placement column, where you will have to define the places where you ads will be features. Option will include:

  • Mobile News Feed
  • Instagram (Integrate Instagram account with Facebook ad to show ads on the platform)
  • Audience network

For businesses with a considerable budget, the best strategy would be to go for multiple ads and ad sets to target your audience group according to their age group, gender, banner ads and video ads. This process will also let you know the type of ads working best in your behalf. This process can also be better guided, if your business already uses tools like Google Analytics, such that you already know where your target audience lies.

#4 Setting up the ad

Adding an image for your ad is important. However, Facebook also allows you to create a video ad. However, be sure to check the image and video uploading guidelines like size restrictions, etc. The recommended image ad size would be 1200 x 628 pixels. Other important things to ensure when creating an image ad are:

  • No more than 20% of text should appear in the image. Check this tool.
  • Your account must be an admin of a minimum of one page

While creating the Ad you required to add Headline, Text and Image for the ad which must look catchy and attractive to gain CTR.

Here is the preview of Facebook Ad.

preview ad fb

Now your Facebook ad has been created and now waits for some good dessert.

#5 Measuring the performance

After you have put up your app install ad successfully on Facebook, it is advisable to keep track of its performance. You can use Facebook Analytics for this purpose. Facebook Analytics would show which category of ads are performing better.

#6 Optimizing the ad

Identify which ads are performing better in power editor whether it may be high CTR, low mobile app installation cost or high installs. List out those ads and modify its budget or add some extra interests in it. Take short steps to improve your ads and do monitoring them continuously. You can also reach below types of people by setting custom audience.

  • Recently opened your app
  • Recently completed a purchase
  • Completed large purchase
  • Achieved a certain level in game

Note – Currently Facebook don’t provide Remarketing feature for mobile app installs campaign. It means you cannot target those audiences who clicked your ad, visited app store but didn’t install the app. We have contacted the Facebook team regarding Remarketing feature and provided this suggestion to the team.

You can also set up the custom audience for your mobile app install campaign.

#7 Analyzing your app install ad campaign

Lastly, it goes without saying that you would be increasing your budgets in categories (places, gender, age group, etc) where your ad is performing better.

Facebook App Install Ad Case Study

As i told you earlier i have personally set up the ads for one of my app (FREE) and it works quite amazing. Check out below case study for the same.

Here is how my Ad displayed in mobile device to the users. Absolutely catchy isn’t it?

mobile ad preview

I have set up the campaign for $10 budget for 2 days and got whopping 41 app installs via App Install Ads.

fb ad sets

As this app seems to more fit for youngsters so for this campaign i targeted USA audience with Age Group of 15 – 30. My ad reached almost 4000 people and got 1.76% CTR which is commendable for App Install campaign. The most important thing for this campaign is cost per installation. Often advertisers set their cost per installation target while setting up the campaign and they must do that.

In this case i got $0.30 cost per installation for Facebook mobile app install campaign which i considered as a remarkable number. But remember here i have sets the ad for FREE application and it might be difference if you promote paid ads.

Facebook has easily become the new app economy in the industry. Developers are running into creating their own app install ads campaigns and it wouldn’t be long before this platform too becomes crowded. However, Facebook will always have the advantage of providing a highly targeted audience and users who exactly match your profile.

If you want to promote your application via App Store Optimization or Mobile App Install Ads or any helps in marketing activity. Contact us now to discuss your requirement.

7 Proven App Store Optimization (ASO) Techniques to Maximize Mobile Apps Downloads

With the increasing use of smartphones, the mobile app industry has seen a surge like never before. According to Statista, there are over 3 million mobile applications available in various app stores and this number is increasing every day. By increasing numbers of apps, the competition is also increasing and it is getting tougher for app owner to increase the downloads of their apps.

app-store-statistics

As shown in given chart, most of the app store are already occupied with plenty of application in all different categories. To increase the numbers of downloads, it is important that your app should be displayed in relevant search query entered by users. In this article, i will explain ASO (App store optimization) techniques to improve the rank of your application in app store. This is not a rocket science; it is very basic techniques and can improves the downloads of your app.

The developers of mobile app generally believe that their only job is to create an app and to make it available on the app store. But in this world of marketing, there is a complete checklist to be followed by developers to ensure maximum users downloads their app.  The team of developer and marketers who follow the complete checklist of app development end up benefiting the most. Developing a mobile app is a 2 phase process including Pre Development and Post Development. While the Pre Development Phase involves developing the app idea and structure, pilot testing and including development features, the post development stage involves ASO and to maximize downloads through this technique. There are multiple app store platforms available today including Apple Store, Play Store, Windows App Store and other customized stores like Samsung Apps and Amazon Apps and your ASO should ideally target all these platforms.

Below is the ASO (App store optimization) checklist that should be followed by the developers to maximize the popularity of an app:

  • Keyword Research
  • Competitor’s Monitoring
  • Relevancy in Application Name
  • Screenshots of the App features
  • Application Preview by Video
  • Relevant Application Description
  • Review & Ratings by end users

You will be surprised to know that most of the developers hardly focus on given points and end up complaining no downloads! Following 7 techniques if adopted properly can meaningfully impact the ranking and success of the apps and these tips can act as a wonderful guide for ASO:

#1 Create a Perfect Icon that beautifully describes your App

iphone screen icons

The logo of your app is what interests the searchers first. Hence it is advisable to design a logo that is recognizable, clear, in sync with the purpose your app serves and actionable. An icon needs to express the app beautifully in a confined space and it should represent your entire app perfectly. Take YogaCurious as an example, it has wonderful design that immediately attracts the searcher and makes him download the piece of Application by just looking at the logo.

#2 Pick the correct Keywords

Using the right keywords for app makes a lot of sense especially to target right users who may download your application. Keyword optimization is an important technique in ASO where you can create a list of relevant keywords using keywords research tool.  There are various keywords tools available online which helps to analyzing keywords or in choosing better keywords. Competitor’s research is also important factor while deciding keywords for particular app. Once the keywords are finalized, optimize the App name, App title and App description using relevant keywords. Make sure you don’t do keyword stuffing; it annoyed users and considered as a bad practice.

#3 Define the App Title that fits your app perfectly

The app title should represent the application theme and try to include targeted keyword that has better search volume. Research suggests that having a keyword in your title will increase the chances to get better search ranking of your app for that keyword. Thus it is clear that the app title holds significance in improving the ranking of your app.

#4 App screenshots and displays

shareapp-lite-screenshots

The screenshots explain the functions and purpose of your app. It is important to keep a few things in mind while including screenshots of the app. It’s important to include the main screen which basically captures what the app will do. The screenshots should also cover a considerable slice of content to communicate the features with the users. A few apps like ShareApp have kept it simple with their screenshots and convey what their app is useful for without keeping any distractions. By educating visitors, you are making them aware about your app functionality and will help them to make download decision.

The developers can also explain the setup process of the app and its different working features. Apple’s Healthbook app displays its menu to explain how it works in more details. It is also a good idea to share any deviations that your app has from the traditional functionality. Google’s inbox is one such app that sways away from traditional email apps and it shows this adequately through screenshots. It is also a good idea to include additional text along with the screenshots to explain the functionality and features of the apps.

One can use SketchtoAppStore tool to design amazing screenshots for iPhone/iPad apps to grab user’s attention.

#5 Optimize the App Description

The first few lines of app store description is what the users will read first and hence it is important to put the main information on the top which could be a sentence about why your app is better than other similar apps. You can also mention a specific award that your app received.

In main portion of App Description you have to list main features or benefits of the application. One can also describe some of the features in depth or details to provide deep information to app users. You could also add quotes from user reviews, by highlighting them from their source.

It is important to choose the right category in the app store while uploading your app. It is always a good idea to put the app in the social networking section in the app store as the users here would know how to use your app better than, say the books section.

#6 Encourage users to give reviews or ratings

app reviews

Application reviews and ratings are one of the most important metrics considered by app store to give better search position to your app. Whenever you develop any app, put your customer in mind and accordingly include the features. If they love using your app, ask them to share their reviews through push notifications. Most of the users are kind enough to share their reviews if they really love your app. Be ready to improve your application based on customer’s feedback, it will help a lot.

#7 Engage with your users to retain them

To retain the users who already downloaded your app is a great technique as far as app marketing is concerned. You will be surprised to know that, about 25% of the downloaded apps are not used twice. It is important to keep posting updates with additional features and functionality will keep user engage.

Review your App Analytics time to time to make better future strategies. Now App Store provides App Analytics tool which describes complete analytic module to define upcoming plans and strategies to increase app users. There are various analytics tools available in the market so choice is all yours. Here is the screenshot from Apple app analytics dashboard represent visual information about the performance of app.

Apple App Analytics Dashboard

app analyticsApple App Analytics Dashboard – 2

app analytics

Customer Life Cycle for ASO

While working on ASO, understanding of customer life cycle of application users will help a lot in defining the strategies at different stages.

Following are the stages of the customer life cycle for the app users:

  1. Reach – The purpose of your application is to reach maximum people and the offering should be marketed in such a way so that the people and businesses that your market is targeting will get to know about your app. It is a measure to increase awareness of your Application. Here you can use paid and social media marketing activities to increase the reach of your app. Google adwords is one of the most popular platform which offers Mobile App Install campaign specially designed to increase the reach of your app.
  2. Acquire – It is important to understand the potential user’s requirements to create a product or a service that these customers would want to purchase. It is important to create a personalized communication that will convert the potential lead to customers who will pay for your services.
  3. Develop Relationship – Build a relationship with your app users once the first purchase is made. This is an important exercise to ensure that your customers are satisfied.
  4. Retain – It is important to convert one time customers into customers who continue to avail your services.  Thus it is important to take feedback from your customers to make them come back by improving your products and services.
  5. Advocacy– Satisfied users are not just loyal but they also become advocates of your brand in their social circles and friends. This helps the business meet potential customers through the existing customers.

Implementing this customer life cycle and managing it well would help the app developers to improve customer’s experience. Eventually it will help increase the usage of the app and ensure customer retention and word of mouth for your app.

The process of ASO requires a vital understanding of the target customer base which also includes an understanding of competitor’s limitations and exact requirement of the audiences. Like every other marketing activity, the main purpose of ASO is to acquire and satisfy customers for a long term association.  The team along with the app developers should try to ensure maximum customer satisfaction to the point that their app starts to spread through word of mouth.

If you are an Application developer or Application owner and needs help in App store optimization? Contact us now to discuss your requirement.

Learn to Integrate Game Center in iOS Project – Apple’s Social Gaming Network

Game Center is a social gaming network owned by Apple Inc. that supports online multi-player gaming. IOS users can invite in their friends into a game via matchmaking. The Game Center dashboard further allows the users to compare their scores with the leader board and track their achievement. Some games can even share multiplayer functionality between iOS and Mac versions. Originally introduced in April 2010, the service has been going through several updates and is now supported on iOS 4.1 and the above version of OS and can be integrated via GameKit framework.  If you are developing a game and looking for huge exposure, integration of Game Center is recommended.

To understand the concept of Game Center one should highly focus on its ‘social’ aspects. To be able to support the social features, the platform allows developers to manage player data in the form of images and text. Developers will need to have an iTunes Connect account wherein they will be adding the Game Center configuration details. Be i share technical information, lets go through some of the important features supported by Apple Game Center.

Features supported and provided by Game Center

It’s so much like any other social networking platform. Using the Game Center, players can seek to connect with new friends by sending friend requests, search for friends, organize multiplayer games online and start their engagement in the virtual competitive environment. Game Center allows for a maximum of 500 connections (friends). Now, depending upon the game, the dashboard will feature achievements and points won. The leader board also allows a user to compare his/her score with other players from across the globe playing the game.

Several iOS games completely depends on Game Center to provide multiplayer gaming experience. It is completely upon the developer whether they choose to use all or some of the various features provided through Game Center.

Here are the several components as described in iTunes Connect:

  1. Leader boards – It’s a sort of database that collects and ranks scores of players for each game in the Game Center. Developers can use iTunes connect for configuring the GameCenter scores, the method of ranking and the display in a language supported by the app.
  2. Leader board sets – These help organize the leader board by limiting the ranking to a certain amount. Developers can use this feature to expand the default leader board of 100 to 500 or display several sets (even 100) of leader board.
  3. Achievements – This lists all the unique achievements that the game is supposed to present. Using iTunes Connect, developers can choose to define the number and language of the achievements.
  4. Game Groups – This feature allows developers to define achievements and leader boards for ranking players from different games, pay levels and platforms. When adding to the group, developers can define the exact achievements and leader boards to be included into the group.
  5. Multiplayer compatibility lists – Helps identify different versions of the same game. This is also the tool to identify compatible games that can be simultaneously played. The lists have to be configured into iTunes.
  6. Other features like Challenges and Matchmaking don’t need to be configured into iTunes Connect.

As we are not familiar with all important features of Apple game center, we we move with the actual integration part. Integrating games into the Game Center isn’t that hard but developers must follow a two-step process.

  • Firstly, developers need to create a new app record on iTunes Connect. This enables/activates the Game Center support for features like leader boards and achievements.
  • Secondly, the project needs to integrate all the GameKit frameworks / libraries that make it compatible with the Game Center.

Lets being with first part of the integration:

Step 1 

Login to your iTunes connect account and create new iOS app by inserting all require information. Once you are done, click on Game Center tab and you will land on below screenshot. Now click on enable for single or group of game as per your requirement.

GameCenter_1

You will see below screen shows your Game center is enabled now.

GameCenter_2

Once you are done, follow instructions and click on Add Leaderboard; you will see below screen. Now choose the Single leaderboard as we have enabled the Game center of single game.

AddLeaderBoard_1
Insert requested information as per below screenshot and click on Add Language.

AddLeaderBoard_2
Now you are done with Leaderboard creation as shown in below screenshot.

GameCenter_3
Once the leaderboard creation is done, the next part is to create the Achievement by following steps as shown in below screenshot.

AddAchievement_2
Once it is done, add language as per below screenshot.
AddAchievement_3

Once you have created leaderboard and achievements, now move back to you application detail and scroll down to switch on Game Center . Once it is enabled, you need to add leaderboard and achievement which you created as explained earlier.  See below screenshot for more details:

Apple game center

Now our iTunes connect part is done and we will move to our second step of integration. I require you to follow these 5 steps of process in Xcode involving player authentication, score submission to leader boards, displaying of achievements and leader boards, managing / ranking the achievements, and resetting them.

Step 1 – Authenticate Player

Here is the source code require to authenticate player with Game Center.

Open ViewController.h file and insert below source code.

@interface ViewController ()
...
//this is declaration of Method
-(void)authenticateLocalPlayer;
@end

Write below code in ViewController.m file

-(void)authenticateLocalPlayer{
GKLocalPlayer *localPlayer = [GKLocalPlayer localPlayer];
localPlayer.authenticateHandler = ^(UIViewController *viewController, NSError *error){
if (viewController != nil) {
//this will open GameCenter Login Screen
[self presentViewController:viewController animated:YES completion:nil];
}
else{
if ([GKLocalPlayer localPlayer].authenticated) {
_gameCenterEnabled = YES;
// Get the default leaderboard identifier.
[[GKLocalPlayer localPlayer] loadDefaultLeaderboardIdentifierWithCompletionHandler:^( NSString * leaderboardIdentifier, NSError *error) {
if (error != nil) {
NSLog(@"%@", [error localizedDescription]);
}
else{
_leaderboardIdentifier = leaderboardIdentifier;
}
}];
}
else{
_gameCenterEnabled = NO;
}
}
};
}
-(void)ViewDidLoad{
[super: ViewDidLoad];
[self authenticateLocalPlayer];
}

Step 2: Source Code of Score Reporting

Write below code in ViewController.h file

@interface ViewController ()
...
-(void)reportScore;
@end

Write below code in ViewController.m file

-(void)reportScore{
GKScore *score = [[GKScore alloc] initWithLeaderboardIdentifier:_leaderboardIdentifier];
score.value = _score;
[GKScore reportScores:@[score] withCompletionHandler:^(NSError *error) {
if (error != nil) {
NSLog(@"%@", [error localizedDescription]);
}
}];
}
- (IBAction)handleAnswer:(id)sender {
....
if (_lives == 0) {
....
[self reportScore];
}
else
{
if (your answer is wrong)
{
_lives--;
}
else
{
move on;
}
}
....
}
-(void)updateTimerLabel:(NSTimer *)timer{
....
if (_timerValue > 60) {
....
[self reportScore];
}
}

Step 3: Source Code for Displaying Leaderboard And Achievements

Write below code in ViewController.h file

@interface ViewController : UIViewController
...
-(void)showLeaderboardAndAchievements:(BOOL)shouldShowLeaderboard;
@end

Write below code in ViewController.m file

-(void)showLeaderboardAndAchievements:(BOOL)shouldShowLeaderboard{
/*here “_leaderboardIdentifier” is your Unique Leaderboard ID which was saved earlier see above image*/
GKGameCenterViewController *gcViewController = [[GKGameCenterViewController alloc] init];
gcViewController.gameCenterDelegate = self;
if (shouldShowLeaderboard) {
gcViewController.viewState = GKGameCenterViewControllerStateLeaderboards;
gcViewController.leaderboardIdentifier = _leaderboardIdentifier;
}
else{
gcViewController.viewState = GKGameCenterViewControllerStateAchievements;
}
[self presentViewController:gcViewController animated:YES completion:nil];
}
- (IBAction)showGameCenterOptions:(id)sender {
....
[_customActionSheet showInView:self.view
withCompletionHandler:^(NSString *buttonTitle, NSInteger buttonIndex) {
if ([buttonTitle isEqualToString:@"View Leaderboard"]) {
[self showLeaderboardAndAchievements:YES];
}
else if ([buttonTitle isEqualToString:@"View Achievements"]) {
[self showLeaderboardAndAchievements:NO];
}
else{
}
}];
....
}
//GameCenterViewController Delegate Method
-(void)gameCenterViewControllerDidFinish:(GKGameCenterViewController *)gameCenterViewController
{
[gameCenterViewController dismissViewControllerAnimated:YES completion:nil];
}

Step 4: Source Code to Manage Achievements

Write below code in ViewController.h file

@interface ViewController ()
...
-(void)updateAchievements;
@end

Write below code in ViewController.m file

-(void)updateAchievements{
NSString *achievementIdentifier;
float progressPercentage = 0.0;
BOOL progressInLevelAchievement = NO;
GKAchievement *levelAchievement = nil;
GKAchievement *scoreAchievement = nil;
if (_currentAdditionCounter == 0) {
if (_level <= 3) {
progressPercentage = _level * 100 / 3;
achievementIdentifier = @"Achievement_Level3";
progressInLevelAchievement = YES;
}
else if (_level < 6){
progressPercentage = _level * 100 / 5;
achievementIdentifier = @"Achievement_Level5Complete";
progressInLevelAchievement = YES;
}
}
if (progressInLevelAchievement) {
levelAchievement = [[GKAchievement alloc] initWithIdentifier:achievementIdentifier];
levelAchievement.percentComplete = progressPercentage;
}
if (_score <= 50) {
progressPercentage = _score * 100 / 50;
achievementIdentifier = @"Achievement_50Points";
}
else if (_score <= 120){
progressPercentage = _score * 100 / 120;
achievementIdentifier = @"Achievement_120Points";
}
else{
progressPercentage = _score * 100 / 180;
achievementIdentifier = @"Achievement_180Points";
}
scoreAchievement = [[GKAchievement alloc] initWithIdentifier:achievementIdentifier];
scoreAchievement.percentComplete = progressPercentage;
NSArray *achievements = (progressInLevelAchievement) ? @[levelAchievement, scoreAchievement] : @[scoreAchievement];
[GKAchievement reportAchievements:achievements withCompletionHandler:^(NSError *error) {
if (error != nil) {
NSLog(@"%@", [error localizedDescription]);
}
}];
}
- (IBAction)handleAnswer:(id)sender {
...
if (shouldContinue){
...
[self updateAchievements];
}
}

Step 5: Source Code to Reset Achievements

Write below code in ViewController.h file
@interface ViewController ()
...
-(void)resetAchievements;
@end

Write below code in ViewController.m file
-(void)resetAchievements{
[GKAchievement resetAchievementsWithCompletionHandler:^(NSError *error) {
if (error != nil) {
NSLog(@"%@", [error localizedDescription]);
}
}];
}

Now run your app in iOS device or simulator and test your app.

If you are iOS developer and still finding any issue, write your query by comment. I will share best possible solution to your query.

If you are business owner and looking for iOS application development services, contact us now!

Free Consultation

Free Consultation