Navigation

    Monaca & Onsen UI
    • Login
    • Search
    • Tags
    • Users
    • Blog
    • Playground
    1. Home
    2. Matt Nelson
    M
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups
    Save
    Saving

    Matt Nelson

    @Matt Nelson

    0
    Reputation
    1
    Posts
    462
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    Matt Nelson Follow

    Posts made by Matt Nelson

    • Add resource file to monaca project?

      so, I would like to add some resource files to support OneSignal notification icons on Android

      https://documentation.onesignal.com/docs/customize-notification-icons#section-3-name-icons-appropriately

      I put the icon files in the tree view under res/android/drawable-<size>/

      I added this to my android platform sections

        <platform name="android">
          <resource-file src="/res/android/drawable-mdpi/ic_stat_onesignal_default.png" target="res/drawable-mdpi/ic_stat_onesignal_default.png" />
      

      I get this error when building

      Build Error: Error: Sandbox Exec Error: [ Error: Source path does not exist: /res/android/drawable-mdpi/ic_stat_onesignal_default.png ]
      

      So, am i doing this completely wrong?

      Thanks

      posted in Developer Corner
      M
      Matt Nelson