The new app is called Shopkick.
Macy's at Union Square is one of a handful of stores testing the technology.
Here's how it works: Macy's has set up transmitters around the store that send discount alerts every time a shopper walks by an item that's for sale.
It's just a test for now, but if it's a success, it could take off with retailers everywhere.