Hi Grace2211
Thank you for your reply.  However, the automatic ear detection is enabled.  I tried disabling then enabling.  I've restarted the airpods; restarted the iphone; and it still transfers to playing on the iphone when i take the airpods out of my ears.
To clarify: spotify is playing from my iphone, through my airpods.  I take one airpod out, the music stops, then I take the other airpod out.  A couple seconds pass with the airpods out of my ears, and then the music continues playing (the same music that was playing in my airpods when i had them in my ears) from the iPhone's speaker.  this is with automatic ear detection enabled.
Please help.