HC-05 not working with some apps

No I am directly connecting one wire from the vin of l298 to vin of Arduino. The vin of l298 is connected directly to the batteries