Announcement

Collapse
No announcement yet.

[FREE] AdColony, AppLovin, Chartboost, UnityAds, Vungle, Sharing, OneSignal, Facebook, Everyplay.

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    #46
    Originally posted by Makis View Post
    Hi athastar,

    I looked at the ad orientation i think i solved the problem.

    I will post the solution later in the day, i am not at my work pc right now.


    As for the second problem, must be something with proguard and shipping builds, i will check it too later.

    Add the following to your ProGuard configuration, at AdColony/Source/AdColony/AdColony_APL.xml, in the proguard additions:
    Code:
    # For communication with AdColony's WebView
    -keepclassmembers class * { 
        @android.webkit.JavascriptInterface <methods>; 
    }
    
    # For removing warnings due to lack of Multi-Window support
    -dontwarn android.app.Activity
    Give it a try and see if packaging works.
    no it does not work.. now errors are changed..
    I am using unreal engine 4.12 and Androidworks 1R4u2
    let me get ERROR Log

    Comment


      #47
      Originally posted by atharstar View Post
      no it does not work.. now errors are changed..
      I am using unreal engine 4.12 and Androidworks 1R4u2
      let me get ERROR Log
      Hi atharstar,

      i made a correction after my first post about proguard:

      check this line: @android.webkit.JavascriptInterface &lt;methods&gt;;

      Code:
      # For communication with AdColony's WebView
      -keepclassmembers class * { 
          @android.webkit.JavascriptInterface &lt;methods&gt;; 
      }
      
      # For removing warnings due to lack of Multi-Window support
      -dontwarn android.app.Activity
      Moreover i haven't tested the plugins with 4.12, mainly with 4.13-4.14 versions.

      But first check again the proguard additions with the correct format.
      Last edited by Makis; 03-24-2017, 06:46 AM.
      Pandora Entertainment
      github.com/PandoraEntertainment
      [PLUGIN][FREE] AdColony, AppLovin, Chartboost, UnityAds, Vungle, Sharing, OneSignal, Facebook, Everyplay.

      Comment


        #48
        Adcolony Shipping failed

        Originally posted by Makis View Post
        Hi atharstar,

        i made a correction after my first post about proguard:

        check this line: @android.webkit.JavascriptInterface <methods>;

        Code:
        # For communication with AdColony's WebView
        -keepclassmembers class * { 
            @android.webkit.JavascriptInterface <methods>; 
        }
        
        # For removing warnings due to lack of Multi-Window support
        -dontwarn android.app.Activity
        Moreover i haven't tested the plugins with 4.12, mainly with 4.13-4.14 versions.

        But first check again the proguard additions with the correct format.
        I am sorry if I am noob here. did you try your plugin with 4.15? I updated my project to 4.15. It still fails to build.

        Code:
        UATHelper: Packaging (Android (ETC1)): ====3/28/2017 12:18:22 AM====PERFORMING FINAL APK PACKAGE OPERATION================================================
        UATHelper: Packaging (Android (ETC1)): UEDeployAndroid.RunCommandLineProgramAndReturnResult: Making .apk with Ant... (note: it's safe to ignore javac obsolete warnings)
        UATHelper: Packaging (Android (ETC1)):     [javac] Note: Some input files use or override a deprecated API.
        UATHelper: Packaging (Android (ETC1)):     [javac] Note: Recompile with -Xlint:deprecation for details.
        UATHelper: Packaging (Android (ETC1)):  [proguard] Warning: com.adcolony.sdk.AdColonyPubServicesPushRegIdListenerService: can't find referenced method 'android.content.ComponentName startService(android.content.Intent)' in program class com.adcolony.sdk.AdColonyPubServicesPushRegIdListenerService
        UATHelper: Packaging (Android (ETC1)):  [proguard] Warning: com.adcolony.sdk.au: can't find referenced method 'boolean isInMultiWindowMode()' in library class android.app.Activity
        UATHelper: Packaging (Android (ETC1)):  [proguard] Warning: com.adcolony.sdk.aw$2: can't find referenced class android.webkit.WebResourceError
        UATHelper: Packaging (Android (ETC1)):  [proguard] Warning: com.adcolony.sdk.aw$2: can't find referenced class android.webkit.WebResourceRequest
        UATHelper: Packaging (Android (ETC1)):  [proguard] Warning: com.adcolony.sdk.aw$2: can't find referenced class android.webkit.WebResourceError
        UATHelper: Packaging (Android (ETC1)):  [proguard] Warning: com.adcolony.sdk.aw$2: can't find referenced class android.webkit.WebResourceError
        UATHelper: Packaging (Android (ETC1)):  [proguard] Warning: com.adcolony.sdk.aw$2: can't find referenced class android.webkit.WebResourceRequest
        UATHelper: Packaging (Android (ETC1)):  [proguard] Warning: com.adcolony.sdk.aw$2: can't find referenced class android.webkit.WebResourceRequest
        UATHelper: Packaging (Android (ETC1)):  [proguard] Warning: com.adcolony.sdk.aw$2: can't find referenced class android.webkit.WebResourceError
        UATHelper: Packaging (Android (ETC1)):  [proguard] Warning: com.adcolony.sdk.aw$2: can't find referenced class android.webkit.WebResourceRequest
        UATHelper: Packaging (Android (ETC1)):  [proguard] Warning: com.adcolony.sdk.aw$2: can't find referenced class android.webkit.WebResourceError
        UATHelper: Packaging (Android (ETC1)):  [proguard] Warning: com.adcolony.sdk.aw$2: can't find referenced class android.webkit.WebResourceRequest
        UATHelper: Packaging (Android (ETC1)):  [proguard] Warning: com.adcolony.sdk.aw$2: can't find referenced class android.webkit.WebResourceRequest
        UATHelper: Packaging (Android (ETC1)):  [proguard] Warning: com.adcolony.sdk.aw$3: can't find referenced class android.webkit.WebResourceRequest
        UATHelper: Packaging (Android (ETC1)):  [proguard] Warning: com.adcolony.sdk.aw$3: can't find referenced class android.webkit.WebResourceRequest
        UATHelper: Packaging (Android (ETC1)):  [proguard] Warning: com.adcolony.sdk.aw$3: can't find referenced class android.webkit.WebResourceRequest
        UATHelper: Packaging (Android (ETC1)):  [proguard] Warning: com.adcolony.sdk.aw$3: can't find referenced class android.webkit.WebResourceRequest
        UATHelper: Packaging (Android (ETC1)):  [proguard] Warning: com.adcolony.sdk.bi$b: can't find referenced class android.webkit.WebResourceError
        UATHelper: Packaging (Android (ETC1)):  [proguard] Warning: com.adcolony.sdk.bi$b: can't find referenced class android.webkit.WebResourceRequest
        UATHelper: Packaging (Android (ETC1)):  [proguard] Warning: com.adcolony.sdk.bi$b: can't find referenced class android.webkit.WebResourceError
        UATHelper: Packaging (Android (ETC1)):  [proguard] Warning: com.adcolony.sdk.bi$b: can't find referenced class android.webkit.WebResourceError
        UATHelper: Packaging (Android (ETC1)):  [proguard] Warning: com.adcolony.sdk.bi$b: can't find referenced method 'void onReceivedError(android.webkit.WebView,android.webkit.WebResourceRequest,android.webkit.WebResourceError)' in program class com.adcolony.sdk.bi$a
        UATHelper: Packaging (Android (ETC1)):  [proguard] Warning: com.adcolony.sdk.bi$b: can't find referenced class android.webkit.WebResourceRequest
        UATHelper: Packaging (Android (ETC1)):  [proguard] Warning: com.adcolony.sdk.bi$b: can't find referenced class android.webkit.WebResourceRequest
        UATHelper: Packaging (Android (ETC1)):  [proguard] Warning: com.adcolony.sdk.bi$b: can't find referenced class android.webkit.WebResourceError
        UATHelper: Packaging (Android (ETC1)):  [proguard] Warning: com.adcolony.sdk.bi$b: can't find referenced class android.webkit.WebResourceRequest
        UATHelper: Packaging (Android (ETC1)):  [proguard] Warning: com.adcolony.sdk.bi$b: can't find referenced class android.webkit.WebResourceError
        UATHelper: Packaging (Android (ETC1)):  [proguard] Warning: there were 24 unresolved references to classes or interfaces.
        UATHelper: Packaging (Android (ETC1)):  [proguard]          You may need to add missing library jars or update their versions.
        UATHelper: Packaging (Android (ETC1)):  [proguard]          If your code works fine without the missing classes, you can suppress
        UATHelper: Packaging (Android (ETC1)):  [proguard]          the warnings with '-dontwarn' options.
        UATHelper: Packaging (Android (ETC1)):  [proguard]          (http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedclass)
        UATHelper: Packaging (Android (ETC1)):  [proguard] Warning: there were 2 unresolved references to program class members.
        UATHelper: Packaging (Android (ETC1)):  [proguard]          Your input classes appear to be inconsistent.
        UATHelper: Packaging (Android (ETC1)):  [proguard]          You may need to recompile the code.
        UATHelper: Packaging (Android (ETC1)):  [proguard]          (http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedprogramclassmember)
        UATHelper: Packaging (Android (ETC1)):  [proguard] Warning: there were 1 unresolved references to library class members.
        UATHelper: Packaging (Android (ETC1)):  [proguard]          You probably need to update the library versions.
        UATHelper: Packaging (Android (ETC1)):  [proguard]          (http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedlibraryclassmember)
        UATHelper: Packaging (Android (ETC1)): BUILD FAILED
        UATHelper: Packaging (Android (ETC1)): F:\NVPACK\android-sdk-windows\tools\ant\build.xml:871: Please correct the above warnings first.
        UATHelper: Packaging (Android (ETC1)): Total time: 31 seconds
        Last edited by rajpootathar; 03-27-2017, 03:21 PM.

        Comment


          #49
          Originally posted by atharstar View Post
          I am sorry if I am noob here. did you try your plugin with 4.15? I updated my project to 4.15. It still fails to build.
          Hi Atharstar,

          Yes it is working on 4.15.1

          check again your proguard additions, add the following, copy from here and paste them to AdColony_APL file:

          # For communication with AdColony's WebView
          -keepclassmembers class * {
          @android.webkit.JavascriptInterface &lt;methods&gt;;
          }

          # For removing warnings due to lack of Multi-Window support
          -dontwarn android.app.Activity
          Pandora Entertainment
          github.com/PandoraEntertainment
          [PLUGIN][FREE] AdColony, AppLovin, Chartboost, UnityAds, Vungle, Sharing, OneSignal, Facebook, Everyplay.

          Comment


            #50
            Originally posted by Makis View Post
            Hi Atharstar,

            Yes it is working on 4.15.1

            check again your proguard additions, add the following, copy from here and paste them to AdColony_APL file:

            # For communication with AdColony's WebView
            -keepclassmembers class * {
            @android.webkit.JavascriptInterface <methods>;
            }

            # For removing warnings due to lack of Multi-Window support
            -dontwarn android.app.Activity
            I did not use this for 4.15.1 I am sorry I tried fresh plugin with 4.15

            I will try it today

            I have tested your VUNGLE Plugin it works like charm THANK YOU

            EDIT:

            I just tested after updating proguard details in xml.

            but it gives same error.
            Last edited by rajpootathar; 03-28-2017, 06:07 PM.

            Comment


              #51
              Originally posted by atharstar View Post
              I did not use this for 4.15.1 I am sorry I tried fresh plugin with 4.15

              I will try it today

              I have tested your VUNGLE Plugin it works like charm THANK YOU

              EDIT:

              I just tested after updating proguard details in xml.

              but it gives same error.
              Could you please attach your AdColony_APL file?
              Pandora Entertainment
              github.com/PandoraEntertainment
              [PLUGIN][FREE] AdColony, AppLovin, Chartboost, UnityAds, Vungle, Sharing, OneSignal, Facebook, Everyplay.

              Comment


                #52
                Originally posted by Makis View Post
                Could you please attach your AdColony_APL file?
                Here it is

                Code:
                <?xml version="1.0" encoding="utf-8"?>
                <!--AdColony plugin additions-->
                <root xmlns:android="http://schemas.android.com/apk/res/android">
                	<!-- init section is always evaluated once per architecture -->
                	<trace enable="true"/>
                	<init>
                		<log text="AdColony init"/>		
                	</init>
                
                  <androidManifestUpdates>
                    <addElements tag="application">
                      <activity android:name="com.adcolony.sdk.AdColonyInterstitialActivity"
                                android:configChanges="keyboardHidden|orientation|screenSize"
                                android:hardwareAccelerated="true"/>
                
                      <activity android:name="com.adcolony.sdk.AdColonyAdViewActivity"
                                android:configChanges="keyboardHidden|orientation|screenSize"
                                android:hardwareAccelerated="true"/>
                    </addElements>
                	
                	<!-- Read App ID from plugin project settings and add to the manifest -->  
                    <setStringFromProperty result="AppId" ini="Engine" section="/Script/AdColony.AdColonySettings" property="AppId" default=""/>
                    <setElement result="AppIdMetadata" value="meta-data"/>
                    <addAttribute tag="$AppIdMetadata" name="android:name" value="com.epicgames.ue4.AdColony.AppId"/>
                    <addAttribute tag="$AppIdMetadata" name="android:value" value="$S(AppId)"/>
                    <addElement tag="application" name="AppIdMetadata"/>
                
                    <!-- Read App ID from plugin project settings and add to the manifest -->
                    <setStringFromProperty result="ZoneId" ini="Engine" section="/Script/AdColony.AdColonySettings" property="ZoneId" default=""/>
                    <setElement result="ZoneIdMetadata" value="meta-data"/>
                    <addAttribute tag="$ZoneIdMetadata" name="android:name" value="com.epicgames.ue4.AdColony.ZoneId"/>
                    <addAttribute tag="$ZoneIdMetadata" name="android:value" value="$S(ZoneId)"/>
                    <addElement tag="application" name="ZoneIdMetadata"/>
                
                  </androidManifestUpdates>
                
                	<!-- optional additions to proguard -->
                	<proguardAdditions>
                		<insert>
                      # If your project uses WebView with JS, uncomment the following
                      # and specify the fully qualified class name to the JavaScript interface
                      # class:
                      -keepclassmembers class fqcn.of.javascript.interface.for.webview {
                        public *;
                      }
                      -keepclassmembers class fqcn.of.javascript.interface.for.webviewclient {
                        public *;
                      }
                            # For communication with AdColony's WebView
                            -keepclassmembers class * {
                            @android.webkit.JavascriptInterface &lt;methods&gt;;
                            }
                
                            # For removing warnings due to lack of Multi-Window support
                            -dontwarn android.app.Activity
                		</insert>
                	</proguardAdditions>
                	
                	<!-- optional files or directories to copy to Intermediate/Android/APK -->
                 	<resourceCopies>		
                		<copyFile src="$S(PluginDir)/../../lib/Android/adcolony-3.0.4.jar" dst="$S(BuildDir)/libs/adcolony-3.0.4.jar" />
                		    <isArch arch="armeabi-v7a">
                			  <copyFile src="$S(PluginDir)/../../lib/Android//armeabi-v7a/libImmEndpointWarpJ.so" dst="$S(BuildDir)/libs/armeabi-v7a/libImmEndpointWarpJ.so" />
                        <copyFile src="$S(PluginDir)/../../lib/Android//armeabi-v7a/libadcolony.so" dst="$S(BuildDir)/libs/armeabi-v7a/libadcolony.so" />
                        <copyFile src="$S(PluginDir)/../../lib/Android//armeabi-v7a/libjs.so" dst="$S(BuildDir)/libs/armeabi-v7a/libjs.so" />
                		    </isArch>
                <!--		<isArch arch="armeabi-v7a">
                     <copyFile src="$S(PluginDir)/../../lib/Android//armeabi-v7a/libadcolony.so" dst="$S(BuildDir)/libs/armeabi-v7a/libadcolony.so" />
                      <copyFile src="$S(PluginDir)/../../lib/Android//armeabi-v7a/libjs.so" dst="$S(BuildDir)/libs/armeabi-v7a/libjs.so" />
                			<copyFile src="$S(EngineDir)/Source/ThirdParty/Oculus/LibOVRMobile/LibOVRMobile_062/VrApi/Libs/Android/armeabi-v7a/libvrapi.so"
                						dst="$S(BuildDir)/libs/armeabi-v7a/libvrapi.so" />
                		</isArch>
                		<copyFile src="$S(EngineDir)/Source/ThirdParty/Oculus/LibOVRMobile/LibOVRMobile_062/VrApi/Libs/Android/VrApi.jar"
                					dst="$S(BuildDir)/libs/VrApi.jar" />
                		<copyFile src="$S(EngineDir)/Source/ThirdParty/Oculus/LibOVRMobile/LibOVRMobile_062/1stParty/VrPlatform/libs/vrplatlib.jar"
                					dst="$S(BuildDir)/libs/vrplatlib.jar" />
                		<if condition="bRemoveOSIG">
                			<true>
                				<deleteFiles filespec="assets/oculussig_*" />
                			</true>
                		</if>-->
                	</resourceCopies>
                
                	<!-- optional additions to the GameActivity imports in GameActivity.java -->
                	<gameActivityImportAdditions>
                		<insert>
                			import com.adcolony.sdk.*;
                	</insert>
                	</gameActivityImportAdditions>
                	
                
                	<!-- optional additions to the GameActivity class in GameActivity.java -->
                	<gameActivityClassAdditions>
                		<insert>
                
                       /* Old SDK
                
                      private boolean bAdColonyAvailability = false;
                
                      // Called after a rewarded video has been viewed completely and user is eligible for reward.
                      public native void nativeAdColonyDidCompleteRewardedVideo(int reward);
                
                      // Called after a rewarded video availability ahs changed
                      public native void nativeDidAdColonyAdAvailabilityChange(final boolean availability);
                
                      private AdColonyV4VCListener AdColonyV4VClistener = new AdColonyV4VCListener()
                      {
                      public void onAdColonyV4VCReward(AdColonyV4VCReward reward)
                      {
                
                      //Just an example, see API Details page for more information.
                      if(reward.success())
                      {
                      //Reward was successful, reward your user here
                      int amount  = reward.amount();
                      String name = reward.name();
                      nativeAdColonyDidCompleteRewardedVideo(amount);
                
                
                      }
                      }
                      };
                
                      private AdColonyAdAvailabilityListener AdColonyAvailabilitylistener = new AdColonyAdAvailabilityListener()
                      {
                      public void onAdColonyAdAvailabilityChange( final boolean available, String zone_id )
                      {
                      if(available)
                      {
                      bAdColonyAvailability = available;
                      nativeDidAdColonyAdAvailabilityChange(available);
                      //Log.debug("AdColony AdAvailabilityChange");
                      }
                      else if(!available)
                      {
                      nativeDidAdColonyAdAvailabilityChange(available);
                      bAdColonyAvailability = available;
                      }
                
                      }
                      };
                
                      public void AndroidThunkJava_AdColony_ShowV4VCReward(String zoneId)
                      {
                      //Log.debug( "AndroidThunkJava_AdColony_ShowV4VCReward()" );
                      AdColonyV4VCAd ad = new AdColonyV4VCAd(zoneId);
                      ad.show();
                      //Log.debug("AdAvailabilityChange");
                      //bAdColonyAvailability =false;
                      }
                
                      public boolean AndroidThunkJava_AdColony_HasRewardedVideo(String ZoneId)
                      {
                      return bAdColonyAvailability;
                
                      }
                
                
                      */
                
                      //Aurora sdk
                      
                      //final String zoneId = ""; //Replace with your ZoneID from AdColony Dashboard.
                	  
                	  private static String zoneId_g = "";
                
                      private AdColonyInterstitial rewardedVideoAd;
                      private AdColonyInterstitialListener listener;
                
                      // Called after a rewarded video has been viewed completely and user is eligible for reward.
                      public native void nativeAdColonyDidCompleteRewardedVideo(int reward);
                
                      // Called after a rewarded video availability has changed
                      public native void nativeDidAdColonyAdAvailabilityChange(boolean availability);
                
                      public void AndroidThunkJava_AdColony_ShowV4VCReward()
                      {
                      rewardedVideoAd.show();
                      //Log.debug( "AndroidThunkJava_AdColony_ShowV4VCReward()" );
                      }
                    </insert>
                	</gameActivityClassAdditions>
                	
                	<!-- optional additions to GameActivity onCreate metadata reading in GameActivity.java -->
                	<gameActivityReadMetadataAdditions>
                		<insert>
                      //if (bundle.containsKey("com.epicgames.ue4.AdColony.AppId") &amp;&amp; bundle.containsKey("com.epicgames.ue4.AdColony.ZoneId")) {
                      String appId = bundle.getString("com.epicgames.ue4.AdColony.AppId");
                      final String zoneId = bundle.getString("com.epicgames.ue4.AdColony.ZoneId");
                      
                      this.zoneId_g = zoneId;
                      
                      
                
                      //Log.debug("AdColony.configure(\"" + appId + "\", \"" + zoneId + "\")");
                
                
                
                      //Configure AdColony in your launching Activity's onCreate() method
                      //so that ads can be available as soon as possible.
                      //AdColony.configure( this, "version:1.0,store:google", "appId", "zoneId" );
                      AdColony.configure( this, appId, zoneId );
                
                      //Log.debug("AdColony.configure(\"" + appId + "\", \"" + zoneId + "\")");
                
                
                      /** Create and set a reward listener */
                      AdColony.setRewardListener( new AdColonyRewardListener()
                      {
                      @Override
                      public void onReward( AdColonyReward reward )
                      {
                      /** Query reward object for info here */
                      nativeAdColonyDidCompleteRewardedVideo(reward.getRewardAmount());
                      //Log.debug("AdColony.onReward" );
                      }
                      } );
                
                      /**
                      * Set up listener for interstitial ad callbacks. You only need to implement the callbacks
                      * that you care about. The only required callback is onRequestFilled, as this is the only
                      * way to get an ad object.
                      */
                      listener = new AdColonyInterstitialListener()
                      {
                      /** Ad passed back in request filled callback, ad can now be shown */
                      @Override
                      public void onRequestFilled( AdColonyInterstitial ad )
                      {
                      //RewardedInterstitialActivity.this.ad = ad;
                      rewardedVideoAd = ad;
                      nativeDidAdColonyAdAvailabilityChange(true);
                      //Log.debug( "AdColony.onRequestFilled" );
                
                      }
                
                      /** Ad request was not filled */
                      @Override
                      public void onRequestNotFilled( AdColonyZone zone )
                      {
                      //Log.debug( "AdColony.onRequestNotFilled");
                      }
                
                      /** Ad opened, reset UI to reflect state change */
                      @Override
                      public void onOpened( AdColonyInterstitial ad )
                      {
                      //Log.debug( "AdColony.onOpened" );
                      }
                
                      /** Request a new ad if ad is expiring */
                      @Override
                      public void onExpiring( AdColonyInterstitial ad )
                      {
                      AdColony.requestInterstitial( zoneId, this );
                      //Log.debug( "AdColony.onExpiring" );
                      }
                      };
                
                
                
                      //Register an AdColonyAdAvailabilityListener to be notified of changes in a zone's
                      //ad availability.
                      //AdColony.addAdAvailabilityListener( AdColonyAvailabilitylistener );
                
                      //Log.debug("addAdAvailabilityListener");
                
                      //Register an AdColonyV4VCListener to be notified of reward events
                      //AdColony.addV4VCListener( AdColonyV4VClistener );
                
                      //Log.debug("addV4VCListener");
                
                  
                
                
                      //} else {
                      //Log.debug("Missing AdColony App ID and/or Zone ID on \"Extra settings for &lt;application&gt;\" in your project's Android settings. Example:\n &lt;meta-data android:name=\"com.epicgames.ue4.AdColony.AppId\" android:value=\"Your App Id\" /&gt;\\n&lt;meta-data android:name=\"com.epicgames.ue4.AdColony.ZoneId\" android:value=\"Your Zone Id\" /&gt;");
                      //}
                    </insert>
                	</gameActivityReadMetadataAdditions>
                	
                	<!-- optional additions to GameActivity onCreate in GameActivity.java -->
                	<gameActivityOnCreateAdditions>
                    <insert>
                      
                
                    </insert>
                   
                
                  </gameActivityOnCreateAdditions>
                
                	<!-- optional additions to GameActivity onDestroy in GameActivity.java -->
                	<gameActivityOnDestroyAdditions>
                		<insert>
                		
                		</insert>
                	</gameActivityOnDestroyAdditions>
                	
                	
                	<!-- optional additions to GameActivity onStart in GameActivity.java -->
                	<gameActivityOnStartAdditions>
                		<insert>
                		
                		</insert>
                	</gameActivityOnStartAdditions>
                
                	<!-- optional additions to GameActivity onStop in GameActivity.java -->
                	<gameActivityOnStopAdditions>
                		<insert>
                		
                		</insert>
                	</gameActivityOnStopAdditions>
                	
                
                	<!-- optional additions to GameActivity onPause in GameActivity.java	-->
                	<gameActivityOnPauseAdditions>
                		<insert>
                		//AdColony.pause(); 
                		</insert>
                	</gameActivityOnPauseAdditions>
                
                
                	<!-- optional additions to GameActivity onResume in GameActivity.java	-->
                	<gameActivityOnResumeAdditions>
                		<insert>
                		//AdColony.resume( this ); 
                		if (rewardedVideoAd == null ||rewardedVideoAd.isExpired())
                        {
                         AdColony.requestInterstitial( zoneId_g, listener );
                         //Log.debug("AdColony.OnResume" + zoneId_g);
                        }
                		</insert>
                	</gameActivityOnResumeAdditions>
                
                
                	<!-- optional additions to GameActivity onActivityResult in GameActivity.java -->
                	<gameActivityOnActivityResultAdditions>
                	</gameActivityOnActivityResultAdditions>
                	
                
                	<!-- optional libraries to load in GameActivity.java before libUE4.so -->
                	<soLoadLibrary>
                	<loadLibrary name="ImmEndpointWarpJ" failmsg="AdColony library not loaded and required!" />
                    <loadLibrary name="adcolony" failmsg="AdColony library not loaded and required!" />
                    <loadLibrary name="js" failmsg="AdColony library not loaded and required!" />
                		<!-- need this if plugin enabled and supported architecture, even if not packaged for GearVR -->
                	<!-- 	<if condition="bSupported">
                			<true>
                				<loadLibrary name="vrapi" failmsg="GearVR library not loaded and required!" />
                			</true>
                		</if> -->
                	</soLoadLibrary>
                </root>

                Comment


                  #53
                  Did you download the latest AdColony sdk:https://github.com/AdColony/AdColony-Android-SDK-3?

                  Copy the library jar file to plugins folder, Plugins\AdColony\lib\Android, name it adcolony-3.1.0.jar and then at AdColony_APL.xml file change this line:

                  Code:
                  <copyFile src="$S(PluginDir)/../../lib/Android/adcolony-3.0.4.jar" dst="$S(BuildDir)/libs/adcolony-3.0.4.jar" />
                  
                  to
                  
                  <copyFile src="$S(PluginDir)/../../lib/Android/adcolony-3.1.0.jar" dst="$S(BuildDir)/libs/adcolony-3.1.0.jar" />
                  Delete all intermediate build, saved folders and try building the project again with visual studio and then package for android if it stills not working.

                  Or try it in a new empty project, adding just the AdColony plugin.
                  Pandora Entertainment
                  github.com/PandoraEntertainment
                  [PLUGIN][FREE] AdColony, AppLovin, Chartboost, UnityAds, Vungle, Sharing, OneSignal, Facebook, Everyplay.

                  Comment


                    #54
                    I will try it when i reach home..

                    thank you

                    Comment


                      #55
                      Originally posted by atharstar View Post
                      I will try it when i reach home..

                      thank you
                      Delete your AdColony_APL and use this one before packaging and download the newest sdk and copy the library as i told you:
                      Attached Files
                      Pandora Entertainment
                      github.com/PandoraEntertainment
                      [PLUGIN][FREE] AdColony, AppLovin, Chartboost, UnityAds, Vungle, Sharing, OneSignal, Facebook, Everyplay.

                      Comment


                        #56
                        i am not receiving any message from onesignal.on its dashboard it shows that message has been delivered but after that it shows this:


                        any idea?



                        my onesignal info part from OneSignal_APL.xml

                        <!-- TODO: Please update the OneSignal ID below to yours! -->
                        <meta-data android:name="onesignal_app_id"
                        android:value="440ddc9c-d076-4eb8-9480-2f9df0d88ae0" />

                        <!-- TODO: Please update the Package Name below to yours! -->
                        <receiver
                        android:name="com.onesignal.GcmBroadcastReceiver"
                        androidermission="com.google.android.c2dm.permission.SEND" >
                        <intent-filter>
                        <action android:name="com.google.android.c2dm.intent.RECEIVE" />
                        <category android:name="com.YourCompany.fbtest" />
                        </intent-filter>
                        </receiver>
                        Attached Files
                        Last edited by Muzaheed; 05-11-2017, 11:08 AM.
                        Contract

                        Need help?
                        google hangout or gmail

                        Comment


                          #57
                          Hi Muzaheed,

                          Check again your package name, should be like you will use it on google developer console.

                          If for example your application is fbtest, then it should be com.nameofyourcompany.fbtest, exactly as you configured google developer console and gcm settings on onesignal, not com.YourCompany.fbtest.

                          For my company that would be com.PandoraEntertainmentLtd.fbtest



                          ...
                          <action android:name="com.google.android.c2dm.intent.RECEIVE" />
                          <category android:name="com.YourCompany.fbtest" />
                          </intent-filter>
                          Pandora Entertainment
                          github.com/PandoraEntertainment
                          [PLUGIN][FREE] AdColony, AppLovin, Chartboost, UnityAds, Vungle, Sharing, OneSignal, Facebook, Everyplay.

                          Comment


                            #58
                            Check again all settings at onesignal,, how to setup google firebase for one signal and then your APL file. I used the old gcm service for setup not firebase. But there are instructions for firebase at one signal too.

                            At OneSignal's Dashboard check at app settings and see if google android status is Active, check configuration.
                            Pandora Entertainment
                            github.com/PandoraEntertainment
                            [PLUGIN][FREE] AdColony, AppLovin, Chartboost, UnityAds, Vungle, Sharing, OneSignal, Facebook, Everyplay.

                            Comment


                              #59
                              it now working.
                              not sure why now it is working.
                              previously, i added onesignal and fb component both inside same actor. now i moved them into 2 different actor and also have deleted old apps from firebase and created new apps.

                              anyway, thanks.


                              correction.
                              it does not work when app is in foreground. it only works when app goes in background.
                              Last edited by Muzaheed; 05-11-2017, 11:09 AM.
                              Contract

                              Need help?
                              google hangout or gmail

                              Comment


                                #60
                                Actually it works.

                                If i remember, it is this line:.inFocusDisplaying(OneSignal.OSInFocusDisplayOption.None) that prevents a pop up message for the notification when game is in foreground.

                                There is already a handler there, for this case where you can pass a keyvalue on blueprint node. So you can show your own message with umg.

                                It is very basic implementation and everyone could do his own thing, that's why i didn't mention it in the post about onesignal.

                                With few tweaks in java cpp, you can have a messenger application's functionality, with few umg and blueprint nodes for your game.

                                I just gave the instructions to send notifications to your games.
                                Pandora Entertainment
                                github.com/PandoraEntertainment
                                [PLUGIN][FREE] AdColony, AppLovin, Chartboost, UnityAds, Vungle, Sharing, OneSignal, Facebook, Everyplay.

                                Comment

                                Working...
                                X