Issues with id-s

Hey guys,

I am using appium version 1.21.0 and having few issues with elements id-s. When I use the id without the app package, the tests fail as the appium driver throws an error element is not found. Instead when I use the app package it works. The problem is that I want to run tests into two different environments in test and staging and the app package is different for both. Any ideas how I can resolve this? Thanks