Forums

OverviewFelgo 2 Support (Qt 5) › Trouble setting up OneSignal

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #21482

    Edward

    Hey!

    I’ve been struggling to set up the One Signal plugin,

    I have followed the steps, my build.gradle and other files all have the appropriate lines added for this, but I am still receiving the error;

     

    Warning: Plugin “VPlay.plugins.onesignal” disabled: Native frameworks not found

     

    The only thing I can’t seem to find is my main.cpp, unsure at what point this has disappeared but my app works fine with it’s firebase integration, are the additions to the main.cpp needed for OneSignal to function, and will the lack of a main.cpp cause issues for me in the future?

     

    Thanks!

    #21509

    Günther
    Felgo Team

    Hi Edward,

    the error

    Warning: Plugin “VPlay.plugins.onesignal” disabled: Native frameworks not found

    hints that the native iOS or Android library for OneSignal is not found.

    For Android, the specified  build.gradle dependency for the One Signal library is sufficient:  compile ‘net.vplay.plugins:plugin-onesignal:3.+’

    On iOS, it is required to manually copy the Framework to your iOS project folder, as described here: https://felgo.com/doc/plugin-onesignal/#ios-integration-steps

     

    Regardless of whether you are using a plugin, and regardless of the above error:
    The main.cpp is the starting point for every application. In case you deleted it accidentally, you should add it again. As your application still builds and runs fine (otherwise the error message wouldn’t even show), your main.cpp is either not missing at all, or still available in your build folder from a previous project build.

    Best,
    Günther

    #21520

    Edward

    Hi Gunther,

     

    I have double checked my build.gradle, and the dependency is there yet I still get the error! The code for my build.gradle is:

     

    buildscript {
        repositories {
            jcenter()
        }
    
        dependencies {
            classpath 'com.android.tools.build:gradle:2.3.3'
            classpath 'com.google.gms:google-services:3.0.0'        
        }
    }
    
    allprojects {
        repositories {
            maven { url 'https://maven.google.com' }
            jcenter()
            maven { url 'https://sdk.v-play.net/maven/' }
        }
    }
    
    apply plugin: 'com.android.application'
    
    dependencies {
        compile fileTree(dir: 'libs', include: ['*.jar'])
        compile "com.android.support:support-core-utils:27.1.0"
        compile "com.android.support:appcompat-v7:27.1.0"
        compile 'net.vplay.plugins:plugin-firebase:2.+'
        compile 'com.google.firebase:firebase-firestore:17.0.1'
        compile 'net.vplay.plugins:plugin-onesignal:3.+'
    }
    
    android {
        compileSdkVersion androidCompileSdkVersion.toInteger()
        buildToolsVersion androidBuildToolsVersion
        defaultConfig {
        applicationId = '<com.MYAPP.MYAPP.MYAPP>'
        }
    
        sourceSets {
            main {
                manifest.srcFile 'AndroidManifest.xml'
                java.srcDirs = [qt5AndroidDir + '/src', 'src', 'java']
                aidl.srcDirs = [qt5AndroidDir + '/src', 'src', 'aidl']
                res.srcDirs = [qt5AndroidDir + '/res', 'res']
                resources.srcDirs = ['src']
                renderscript.srcDirs = ['src']
                assets.srcDirs = ['assets']
                jniLibs.srcDirs = ['libs']
           }
        }
    
        lintOptions {
            abortOnError false
        }
    }
    
    apply plugin: 'com.google.gms.google-services'
    

     

    Is this incorrect? My app requires both firebase and onesignal

     

    In regards to the main.cpp, I recently removed all previous build folders for space, so am unable to track when it was lost, but recreated it today (made a new project and copy/pasted it, Felgo live works fine, and I have been testing with this for some time as firebase is not supported on desktop – but when I try to build I receive a series of errors. This is a different subject, so I will make a new topic if I cannot fix!

     

    Thanks

    Edd

Viewing 3 posts - 1 through 3 (of 3 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support