What Should I Do If My Game Is Rejected for Not Displaying the Welcome Banner After a User Has Signed In? - huawei-mobile-services

After the Game Service and IAP SDKs of HMS Core are integrated, I submitted my game for review, but it was rejected by Huawei for not displaying the welcome banner at the top of the game after the sign-in API is called for my game with a HUAWEI ID signed in. How can i solve it?

If the welcome banner is not displayed after a HUAWEI ID has signed in to the game, check the fault:
In the game/app launch phase, add code to the onCreate method of Application to register the callback listener of the activity. For details, please refer to the guide.
public class MyApplication extends Application{
#Override
public void onCreate(){
super.onCreate();
HuaweiMobileServicesUtil.setApplication(this);
}
}
Before compilation, ensure that the name of the Application class, for example, android:name=".MyApplication", has been configured in the application element in the app's manifest file.

Try making the display banner for the game before other users try using it

Related

There was no response when the admob reward advertisement view button was pressed

My game is currently published on the Google Play Store and registered on AdMob.
When I installed and ran it with APK on my device, both test and real worked well.
The advertisement doesn't come out only when I get it from the store.
I'm continuing to double-check, but are there any doubts?

Displaying Admob Interstitial Ads without initialize Publisher ID

I have an android app published in Play Store and displaying Interstitial Ads.
I have a concern regarding this:
In my script, I only set the Interstitial ID using setAdUnitId() without initializing Publisher ID MobileAds.initialize(this,<Publisher_ID>).
Is it okay to do this?
Are there any disadvantages not initialize our publisher ID?
If you're using the official Unity Plugin to implement the Mobile Ads SDK, then, as stated in this thread, just using your Ad Unit ID should be fine.

AdMob Facebook Mediation in Android

I am unable to mediate between admob and facebook audience network (FAN) in android app. The app is only serving ads from Admob network. The mediation between Admob and FAN is not working. Below is the process I have followed:
Integrated Admob in Android app. This is working fine.
Created a new developer account in facebook.
Added a new app (application id) in facebook.
Added two publishers id in facebook (one for banner and other for interstitial)
Included the adapter jar in the eclipse and added it to build path
Downloaded facebook sdk and added the classes.jar in eclipse. Added this to build path.
Added meta-data for facebook app id in Android Manifest
Project is compiled without any errors
Made proguard changes as per the instruction available at: https://firebase.google.com/docs/admob/android/mediation#include_network_adapters_and_sdks
Added mediation entries in Admob with ecpm 0.01 and 5.00.
When I run the code, I only get test ads from admob. On facebook, i see no ad requests. Till facebook doesn't recieves the ad request, it won't validate the app and ads.
Not sure if I need to make any change to android code. I am using the same code that worked for admob. It is just that I have now included the facebook jars and made changes to manifest file. No change is made to java code files or xml files?
Also, does facebook need activity context in adview request? I have adview defined in XML so I don't knw how to pass the activity context.
The code is driving me crazy.. and there is no single documentation available on how to make admob and FAN work in android code..
Prioritize facebook so the traffic/request will go to facebook instead admob just for testig purposes.
In my case to redirect traffic to facebook I set admob floor eCPM to $50 so it won't be served and surely it will try facebook since you configured it in the mediation stack.
NOTE: DO not use test ads on admob when doing above. Use real ads just don't click on it.
Here's what I did: For Facebook to validate your app, deactivate the mediation in your code and try loading just a Facebook ad instead as they show on their how-to-page. Once you see the ad from Facebook the status of your App turns to "validating". For me after like 3-4 hours it changed to "ready".
To get the Facebook ads delivered to your device, you need to have Facebook app installed and logged-in at least once. Do the following:
Install the Facebook app on your phone
Log in to the Facebook app with the same account from which you are requesting the ads
Now open your own app and request the ads from Facebook. If your integration is fine, you should get the ads.

Facebook iOS SDK restarts the application

I want to publish scores of iPad game on Facebook when the game is over, game is made using cocos2d. I have made UIViewController and assigned it as delegate for FBConnect as well. I add it's subview on top of glView when i need to publish scores.But Facebook iOS SDK Single-Sign-On takes the application back to the first view of application when redirects after authorizing facebook app. I want it to simply remove this view from top view instead of going back to from where the application started. Is there any way to resume application from same point instead of restarting?
Also, how can we check if Facebook app is already authorized by a user so that application can skip authorization and can show "publish on wall" dialog start away?
If you are using Facebook lastest SDK's Single-sign on feature than the control gets out of your application. Solution is to leave SSO feature and make your custom class for Facebook connectivity. Implement login, publish and logout where you want and save access authorization in NSUSerDefaults. This post contains detail code to implement it. Hope it helps :)

Enabling music while the iPhones goes hold during a call

I need to create an app which enables the caller in the other end to hear music while I press hold on my iPhone. This music will be selected from my library. Is there any API or anything which can help me with this?
There is no public iOS API by with an app can either send or receive audio from the Phone app during a phone call. The security sandbox will prevent even a private API from doing this on a stock OS device.