Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by TheCount · Jan 19, 2014 at 03:55 AM · androidjavascriptnullreferenceexception

RevMob Integration Not Working

I imported the package.

Then I re-wrote the xml file.

Then I attached this script to the main camera.

 import System.Collections.Generic;
 
 private var APP_IDS = new Dictionary.<String, String>();
 APP_IDS["Android"] = "52db16f3e9e63d7009000004";
 APP_IDS["IOS"] = "copy your iOS RevMob App ID here";
 private var revmob:RevMob;
 
 function Awake() {
     revmob = RevMob.Start(APP_IDS, gameObject.name);
 }
 
 function Start(){
 revmob.ShowFullscreen();
 }

And it isn't working... I get a NullReference error in the start function. why?

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Zynigma · Feb 08, 2014 at 02:45 AM 0
Share

Did you ever figure this out? I'm having a very similar issue. Just won't work, but it's supposed to be a quick process

avatar image Keyvan_MM · Feb 14, 2014 at 07:14 PM 0
Share

i have this problem too, any solution? :(

4 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by sozeray · Mar 23, 2014 at 06:39 PM

I had this problem. Solved it by creating an empty gameobject and attaching this code (below) to it:

 private var APP_IDS = new Dictionary.<String, String>();
 private var revmob : RevMob;
 
 function Awake() {
 
     APP_IDS["Android"] = "LÖL";
     APP_IDS["IOS"] = "QWERTYUIOP";
     revmob = RevMob.Start(APP_IDS, this.gameObject.name);
 }
 
 function Start () {
 
     revmob.ShowFullscreen();
 
 }
Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by BCGray00 · May 18, 2014 at 11:18 AM

The NullReferenceException doesn't matter. Build onto the device and make sure the minimum click bid isnt too high - Learnt the hard way!

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Eklavyaa · Jun 25, 2014 at 11:41 AM

Make sure You are connected to the device ! You also get Logs about device not connected in Console.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Kainano · Jul 25, 2015 at 06:21 PM

I had the same problem.

For some reason I couldn't call revmob.ShowFullscreen() in the Start() method. Try doing that on Update() or any other custom method after the Start has already finished.

It must have something to do with how Activities are loaded on the background.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

24 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

NullReferenceException: Object reference not set to an instance of an object 3 Answers

How to make Headbobber on joystick Android 2 Answers

'GetComponent' is not a member of 'Object'. 2 Answers

Is there a way to scale everything in my game (GUI, text size, etc.) on Android in Javascript? 2 Answers

NullReferenceException help 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges