SmartThings Button Keeps Going Offline

I had the same issue a while back.
Do you have any other buttons?
If you do and they are ok, return it, it is most likely bad. Thats what i did with mine. replacement has been flawless since.